mmap() return value when length == 0

From: jacob berkman (jacob@ximian.com)
Date: Thu Aug 23 2001 - 17:12:54 EST


hello,

on linux (2.4.9 and 2.2.18), the mmap() syscall will return NULL if the
length argument is 0 rather than returning MAP_FAILED (-1). this is
different than both solaris and hp-ux, and the linux man page doesn't
indicate that it should do this.

so, is this indeed the desired behaviour or a longstanding bug?

thanks,
jacob

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:01:02 EST