mmap(2) with MAP_ANON honouring offset although it shouldn't
Ed Schouten
ed at 80386.nl
Tue Nov 3 17:24:54 UTC 2009
Hi Alan,
* Alan Cox <alan.l.cox at gmail.com> wrote:
> The standards for mmap(2) actually disallow values of "off" that are not a
> multiple of the page size.
>
> See http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html for
> the following:
> <snip>
Just by accident I saw they changed that behaviour in a newer version of
the spec:
http://www.opengroup.org/onlinepubs/9699919799/functions/mmap.html
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20091103/64e98264/attachment.pgp
More information about the freebsd-hackers
mailing list