From 228d889fc73fb63f644e846212c55105844f857f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 12 Apr 2018 09:28:30 +0200 Subject: [PATCH] mmap.2: ffix Signed-off-by: Michael Kerrisk --- man2/mmap.2 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/man2/mmap.2 b/man2/mmap.2 index f702f3e4e..f433b114b 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@ -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.