summaryrefslogtreecommitdiffstats
path: root/man3/pthread_cleanup_push.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/pthread_cleanup_push.3')
-rw-r--r--man3/pthread_cleanup_push.334
1 files changed, 19 insertions, 15 deletions
diff --git a/man3/pthread_cleanup_push.3 b/man3/pthread_cleanup_push.3
index 7026929a8..c677b29ea 100644
--- a/man3/pthread_cleanup_push.3
+++ b/man3/pthread_cleanup_push.3
@@ -53,7 +53,7 @@ all of the stacked clean-up handlers are popped and executed in
the reverse of the order in which they were pushed onto the stack.
.IP \[bu]
When a thread terminates by calling
-.BR pthread_exit (3),
+.MR pthread_exit 3 ,
all clean-up handlers are executed as described in the preceding point.
(Clean-up handlers are
.I not
@@ -81,23 +81,27 @@ and at the same lexical nesting level.
during the execution of a specified section of code.)
.P
Calling
-.BR longjmp (3)
-.RB ( siglongjmp (3))
+.MR longjmp 3
+\%(\c
+.MR siglongjmp 3 )
produces undefined results if any call has been made to
.BR pthread_cleanup_push ()
or
.BR pthread_cleanup_pop ()
without the matching call of the pair since the jump buffer
was filled by
-.BR setjmp (3)
-.RB ( sigsetjmp (3)).
+.MR setjmp 3
+\%(\c
+.MR sigsetjmp 3 ).
Likewise, calling
-.BR longjmp (3)
-.RB ( siglongjmp (3))
+.MR longjmp 3
+\%(\c
+.MR siglongjmp 3 )
from inside a clean-up handler produces undefined results
unless the jump buffer was also filled by
-.BR setjmp (3)
-.RB ( sigsetjmp (3))
+.MR setjmp 3
+\%(\c
+.MR sigsetjmp 3 )
inside the handler.
.SH RETURN VALUE
These functions do not return a value.
@@ -105,7 +109,7 @@ These functions do not return a value.
There are no errors.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -312,8 +316,8 @@ main(int argc, char *argv[])
.EE
.\" SRC END
.SH SEE ALSO
-.BR pthread_cancel (3),
-.BR pthread_cleanup_push_defer_np (3),
-.BR pthread_setcancelstate (3),
-.BR pthread_testcancel (3),
-.BR pthreads (7)
+.MR pthread_cancel 3 ,
+.MR pthread_cleanup_push_defer_np 3 ,
+.MR pthread_setcancelstate 3 ,
+.MR pthread_testcancel 3 ,
+.MR pthreads 7