summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mmap.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/mmap.2')
-rw-r--r--lib/libc/sys/mmap.212
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index e629999c8d1..e8783ed672a 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -152,9 +152,19 @@ should be done.
Upon successful completion,
.Nm mmap
returns a pointer to the mapped region.
-Otherwise, a value of -1 is returned and
+Otherwise, a value of
+.Dv MAP_FAILED
+is returned and
.Va errno
is set to indicate the error.
+The symbol
+.Dv MAP_FAILED
+is defined in the header
+.Ao Pa sys/mman.h Ac .
+No successful return from
+.Fn mmap
+will return the value
+.Dv MAP_FAILED .
.Sh ERRORS
.Fn Mmap
will fail if: