summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-06 08:21:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-06 08:21:13 +0000
commit929f8a5fbf6ff376d40ec7cf08922abdd747b4b6 (patch)
tree0cea5dbcf8b05cedc2ae352d957fe4a7873e280a
parentc2399020336ed4f02b55c495cc3825dcf4c5c686 (diff)
MAP_FAILED; kleink
-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: