mmap/munmap with zero length

Alexander Best alexbestms at math.uni-muenster.de
Thu Jul 9 04:09:25 UTC 2009


so. doesn't that mean that actually freebsd's mmap implementation needs to be
changed in order to return an error if one tries to allocate space with len=0?

alex

Bob Bishop schrieb am 2009-07-06:
> Hi,

> On 6 Jul 2009, at 13:14, Dag-Erling Smørgrav wrote:

> >Allocating or mapping a zero-length region is not necessarily a bug.

> POSIX says it is, IIRC.

> --
> Bob Bishop
> rb at gid.co.uk





More information about the freebsd-hackers mailing list