> From: Joe Orton [mailto:joe@manyfish.co.uk]
> Sent: Thursday, February 27, 2003 10:32 PM
> 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...
Yah, from the flurry of failures I've seen on the subversion list I've
learned enough :(.
I guess we need to always return APR_EINVAL when a 0 sized mmap is requested.
Sander
|