summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/shm_open.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/shm_open.2')
-rw-r--r--lib/libc/sys/shm_open.218
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/sys/shm_open.2 b/lib/libc/sys/shm_open.2
index 7b62e9a..b68e85b 100644
--- a/lib/libc/sys/shm_open.2
+++ b/lib/libc/sys/shm_open.2
@@ -98,6 +98,15 @@ The
function makes no effort to ensure that
.Fa path
refers to a shared memory object.
+.Sh RETURN VALUES
+If successful,
+.Fn shm_open
+returns a non-negative integer;
+.Fn shm_unlink
+returns zero.
+Both functions return -1 on failure, and set
+.Va errno
+to indicate the error.
.Sh COMPATIBILITY
The
.Fa path
@@ -130,15 +139,6 @@ on a shared memory object, or on the descriptor returned by
is undefined.
It is also undefined whether the shared memory object itself, or its
contents, persist across reboots.
-.Sh RETURN VALUES
-If successful,
-.Fn shm_open
-returns a non-negative integer;
-.Fn shm_unlink
-returns zero.
-Both functions return -1 on failure, and set
-.Va errno
-to indicate the error.
.Sh ERRORS
The
.Fn shm_open
OpenPOWER on IntegriCloud