POSIX compliance issue with mmap(2)

Garrett Wollman wollman at csail.mit.edu
Thu Jul 29 15:55:02 UTC 2010

<<On Wed, 28 Jul 2010 23:47:03 -0700, Garrett Cooper <yanegomi at gmail.com> said:

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

>     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).


More information about the freebsd-standards mailing list