summaryrefslogtreecommitdiffstats
path: root/man3/sem_destroy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/sem_destroy.3')
-rw-r--r--man3/sem_destroy.316
1 files changed, 8 insertions, 8 deletions
diff --git a/man3/sem_destroy.3 b/man3/sem_destroy.3
index 0a8d0d2e7..eb20554fa 100644
--- a/man3/sem_destroy.3
+++ b/man3/sem_destroy.3
@@ -21,18 +21,18 @@ destroys the unnamed semaphore at the address pointed to by
.IR sem .
.P
Only a semaphore that has been initialized by
-.BR sem_init (3)
+.MR sem_init 3
should be destroyed using
.BR sem_destroy ().
.P
Destroying a semaphore that other processes or threads are
currently blocked on (in
-.BR sem_wait (3))
+.MR sem_wait 3 )
produces undefined behavior.
.P
Using a semaphore that has been destroyed produces undefined results,
until the semaphore has been reinitialized using
-.BR sem_init (3).
+.MR sem_init 3 .
.SH RETURN VALUE
.BR sem_destroy ()
returns 0 on success;
@@ -46,7 +46,7 @@ is set to indicate the error.
is not a valid semaphore.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -69,7 +69,7 @@ before the memory in which it is located is deallocated.
Failure to do this can result in resource leaks on some implementations.
.\" But not on NPTL, where sem_destroy () is a no-op..
.SH SEE ALSO
-.BR sem_init (3),
-.BR sem_post (3),
-.BR sem_wait (3),
-.BR sem_overview (7)
+.MR sem_init 3 ,
+.MR sem_post 3 ,
+.MR sem_wait 3 ,
+.MR sem_overview 7