Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 09:38:59 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Garrett Wollman <wollman@csail.mit.edu>
Cc:        alc@freebsd.org, standards@freebsd.org
Subject:   Re: POSIX compliance issue with mmap(2)
Message-ID:  <AANLkTi=q9bF=x=PnackOE%2BcxGPAGqdER3=hWsebCgBBT@mail.gmail.com>
In-Reply-To: <19537.40008.156802.846800@khavrinen.csail.mit.edu>
References:  <AANLkTim1Dtn4bkWBtMVWV_2JwxCr0GdxwBXeJHK=td5Z@mail.gmail.com> <19537.40008.156802.846800@khavrinen.csail.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 29, 2010 at 8:20 AM, Garrett Wollman <wollman@csail.mit.edu> wr=
ote:
> <<On Wed, 28 Jul 2010 23:47:03 -0700, Garrett Cooper <yanegomi@gmail.com>=
 said:
>
>> =A0 =A0 According to the page noted below [1], mmap(2) should fail if th=
e
>> value isn't page-aligned:
>
>> [EINVAL]
>> =A0 =A0 The addr argument (if MAP_FIXED was specified) or off is not a
>> multiple of the page size as returned by sysconf(), or is considered
>> invalid by the implementation.
>
> This may be a bug in the standard (since this is a "shall fail"
> condition, and there's no reason it has to fail if the application
> didn't specify MAP_FIXED).

There are a number of opengroup manpages I've seen use the `shall
fail' tort in the ERRORs sections -- some being connect(2), open(2),
etc. I'll see if I can get clarification on whether or not there is
any wiggle room if it states "shall fail if".

Thanks,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=q9bF=x=PnackOE%2BcxGPAGqdER3=hWsebCgBBT>