Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 11:20:40 -0400
From:      Garrett Wollman <wollman@csail.mit.edu>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        alc@freebsd.org, standards@freebsd.org
Subject:   POSIX compliance issue with mmap(2)
Message-ID:  <19537.40008.156802.846800@khavrinen.csail.mit.edu>
In-Reply-To: <AANLkTim1Dtn4bkWBtMVWV_2JwxCr0GdxwBXeJHK=td5Z@mail.gmail.com>
References:  <AANLkTim1Dtn4bkWBtMVWV_2JwxCr0GdxwBXeJHK=td5Z@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 28 Jul 2010 23:47:03 -0700, Garrett Cooper <yanegomi@gmail.com> said:

>     According to the page noted below [1], mmap(2) should fail if the
> value isn't page-aligned:

> [EINVAL]
>     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).

-GAWollman



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