[lkml]   [2001]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmmap() return value when length == 0

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?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:58    [W:0.071 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site