On Thu, Feb 27, 2003 at 02:35:51PM +0100, Sander Striker wrote: ... > Is there a known issue with mmapping 0 sized files? > > FYI, I'm on Linux 2.4.20, glibc 2.3.1.
>From a quick check, unless I'm screwing something up, it appears that passing a zero length argument to mmap() doesn't work on several platforms (nor does it make a whole lot of sense ;): Solaris and HP-UX both return EINVAL from the the mmap call... I'll ask our kernel guys about the Linux case, though I'd guess they'll say it's undefined behaviour. joe
