mmap.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-04-12 09:28:30 +02:00
parent c6a51c0645
commit 228d889fc7
1 changed files with 11 additions and 6 deletions

View File

@ -264,14 +264,19 @@ and the PAM libraries
Newer kernels
(Linux 4.17 and later) have a
.B MAP_FIXED_NOREPLACE
option that avoids the corruption problem; if available, MAP_FIXED_NOREPLACE
should be preferred over MAP_FIXED.
option that avoids the corruption problem; if available,
.B MAP_FIXED_NOREPLACE
should be preferred over
.BR MAP_FIXED .
.TP
.BR MAP_FIXED_NOREPLACE " (since Linux 4.17)"
Similar to MAP_FIXED with respect to the
.I
addr
enforcement, but different in that MAP_FIXED_NOREPLACE never clobbers a pre-existing
Similar to
.B MAP_FIXED
with respect to the
.I addr
enforcement, but different in that
.B MAP_FIXED_NOREPLACE
never clobbers a pre-existing
mapped range. If the requested range would collide with an existing
mapping, then this call fails with
.B EEXIST.