Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2009 08:12:18 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        alc@freebsd.org, Ed Schouten <ed@80386.nl>, Alexander Best <alexbestms@math.uni-muenster.de>
Subject:   Re: mmap(2) with MAP_ANON honouring offset although it shouldn't
Message-ID:  <200911040812.18712.jhb@freebsd.org>
In-Reply-To: <20091103172452.GU1293@hoeg.nl>
References:  <permail-200910211551041e86ffa80000182a-a_best01@message-id.uni-muenster.de> <ca3526250910211051v2fef55e7yda262a58df200751@mail.gmail.com> <20091103172452.GU1293@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 03 November 2009 12:24:52 pm Ed Schouten wrote:
> Hi Alan,
> 
> * Alan Cox <alan.l.cox@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911040812.18712.jhb>