diff options
Diffstat (limited to 'lib/libc/gen/shm_open.3')
-rw-r--r-- | lib/libc/gen/shm_open.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/gen/shm_open.3 b/lib/libc/gen/shm_open.3 index 7b62e9a..b68e85b 100644 --- a/lib/libc/gen/shm_open.3 +++ b/lib/libc/gen/shm_open.3 @@ -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 |