apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject RE: mmap bug?
Date Thu, 27 Feb 2003 22:10:55 GMT
> 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


Mime
View raw message