public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mmap() return value when length == 0
@ 2001-08-23 22:12 jacob berkman
  2001-08-23 23:43 ` Justin Guyett
  0 siblings, 1 reply; 3+ messages in thread
From: jacob berkman @ 2001-08-23 22:12 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <Pine.LNX.4.10.10108231945450.8694-100000@coffee.psychology.mcmaster.ca>]

end of thread, other threads:[~2001-08-23 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 22:12 mmap() return value when length == 0 jacob berkman
2001-08-23 23:43 ` Justin Guyett
     [not found] <Pine.LNX.4.10.10108231945450.8694-100000@coffee.psychology.mcmaster.ca>
2001-08-23 23:48 ` Justin Guyett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox