]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 271635,271722:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Dec 2014 20:05:10 +0000 (20:05 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Dec 2014 20:05:10 +0000 (20:05 +0000)
commitb1001510166a6d5e1d1354b6794d3d67070f61d7
tree89e6e6aeafeefb5c8ab2a6e31775e1b1f8a05e3b
parentbac013ba41e8c51a092b4a5474c15d80a37f7f44
MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.

git-svn-id: svn://svn.freebsd.org/base/stable/10@275837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/mmap.2