Loading...
sys/shm_open.2 Libc-498 Libc-391
--- Libc/Libc-498/sys/shm_open.2
+++ Libc/Libc-391/sys/shm_open.2
@@ -29,18 +29,12 @@
 .Sh SYNOPSIS
 .Fd #include <sys/mman.h>
 .Ft int
-.Fo shm_open
-.Fa "const char *name"
-.Fa "int oflag"
-.Fa "..."
-.Fc
-.Pp
-The parameter "mode_t mode" is optional.
+.Fn shm_open "const char *name" "int flags" "mode_t mode"
 .Sh DESCRIPTION
 The shared memory object referenced by
 .Fa name
 is opened for reading and/or writing as specified by the argument
-.Fa oflag
+.Fa flags
 and the file descriptor returned to the calling process.
 The returned file descriptor will be the lowest non-open file
 descriptor for the calling process, and is not shared with any
@@ -57,7 +51,7 @@
 object, provided that the object has not been unlinked by a call to
 .Fn shm_unlink .
 The
-.Fa oflag
+.Fa flags
 argument may indicate the file is to be
 created if it does not exist (by specifying the
 .Dv O_CREAT
@@ -68,9 +62,7 @@
 and modified by the process' umask value (see
 .Xr umask 2 ) .
 .Pp
-The value of
-.Fa oflag
-is formed by
+The flags specified are formed by
 .Em or Ns 'ing
 the following values:
 .Pp