summaryrefslogtreecommitdiffstats
path: root/man3/sem_init.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/sem_init.3')
-rw-r--r--man3/sem_init.328
1 files changed, 14 insertions, 14 deletions
diff --git a/man3/sem_init.3 b/man3/sem_init.3
index 7b46e8e7f..28d6aabb5 100644
--- a/man3/sem_init.3
+++ b/man3/sem_init.3
@@ -40,17 +40,17 @@ If
.I pshared
is nonzero, then the semaphore is shared between processes,
and should be located in a region of shared memory (see
-.BR shm_open (3),
-.BR mmap (2),
+.MR shm_open 3 ,
+.MR mmap 2 ,
and
-.BR shmget (2)).
+.MR shmget 2 ).
(Since a child created by
-.BR fork (2)
+.MR fork 2
inherits its parent's memory mappings, it can also access the semaphore.)
Any process that can access the shared memory region
can operate on the semaphore using
-.BR sem_post (3),
-.BR sem_wait (3),
+.MR sem_post 3 ,
+.MR sem_wait 3 ,
and so on.
.P
Initializing a semaphore that has already been initialized
@@ -72,10 +72,10 @@ exceeds
.I pshared
is nonzero,
but the system does not support process-shared semaphores (see
-.BR sem_overview (7)).
+.MR sem_overview 7 ).
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -98,11 +98,11 @@ be returned by a successful call to
POSIX.1-2008 rectifies this, specifying the zero return on success.
.SH EXAMPLES
See
-.BR shm_open (3)
+.MR shm_open 3
and
-.BR sem_wait (3).
+.MR sem_wait 3 .
.SH SEE ALSO
-.BR sem_destroy (3),
-.BR sem_post (3),
-.BR sem_wait (3),
-.BR sem_overview (7)
+.MR sem_destroy 3 ,
+.MR sem_post 3 ,
+.MR sem_wait 3 ,
+.MR sem_overview 7