mmap/munmap with zero length

Dag-Erling Smørgrav des at des.no
Mon Jul 6 13:49:21 UTC 2009


Bob Bishop <rb at gid.co.uk> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Allocating or mapping a zero-length region is not necessarily a bug.
> POSIX says it is, IIRC.

For mmap(), yes; for malloc(), no.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list