mmap(2) with MAP_ANON honouring offset although it shouldn't
John Baldwin
jhb at freebsd.org
Wed Nov 4 13:18:32 UTC 2009
On Tuesday 03 November 2009 12:24:52 pm Ed Schouten wrote:
> 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
Note that the spec doesn't cover MAP_ANON at all FWIW.
--
John Baldwin
More information about the freebsd-hackers
mailing list