summaryrefslogtreecommitdiffstats
path: root/man2/sigaltstack.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/sigaltstack.2')
-rw-r--r--man2/sigaltstack.232
1 files changed, 16 insertions, 16 deletions
diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2
index bd5e6ab86..2f31b43ca 100644
--- a/man2/sigaltstack.2
+++ b/man2/sigaltstack.2
@@ -20,7 +20,7 @@ Standard C library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR sigaltstack ():
@@ -37,7 +37,7 @@ signal stack and/or retrieve the state of an existing
alternate signal stack.
An alternate signal stack is used during the
execution of a signal handler if the establishment of that handler (see
-.BR sigaction (2))
+.MR sigaction 2 )
requested it.
.P
The normal sequence of events for using an alternate signal stack
@@ -55,7 +55,7 @@ location of the alternate signal stack.
.TP
3.
When establishing a signal handler using
-.BR sigaction (2),
+.MR sigaction 2 ,
inform the system that the signal handler should be executed
on the alternate signal stack by
specifying the \fBSA_ONSTACK\fP flag.
@@ -97,7 +97,7 @@ the previous alternate signal stack settings are restored.
.IP
This flag was added in order to make it safe
to switch away from the signal handler with
-.BR swapcontext (3).
+.MR swapcontext 3 .
Without this flag, a subsequently handled signal will corrupt
the state of the switched-away signal handler.
On kernels where this flag is not supported,
@@ -149,7 +149,7 @@ executing on an alternate signal stack that was established using the
.B SS_AUTODISARM
flag.
In this case, it is safe to switch away from the signal handler with
-.BR swapcontext (3).
+.MR swapcontext 3 .
It is also possible to set up a different alternative signal stack
using a further call to
.BR sigaltstack ().
@@ -195,7 +195,7 @@ it was active (i.e., the thread was already executing
on the current alternate signal stack).
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -249,14 +249,14 @@ Exceeding the allocated size of the alternate signal stack will
lead to unpredictable results.
.P
A successful call to
-.BR execve (2)
+.MR execve 2
removes any existing alternate
signal stack.
A child process created via
-.BR fork (2)
+.MR fork 2
inherits a copy of its parent's alternate signal stack settings.
The same is also true for a child process created using
-.BR clone (2),
+.MR clone 2 ,
unless the clone flags include
.B CLONE_VM
and do not include
@@ -321,7 +321,7 @@ is specified in
The following code segment demonstrates the use of
.BR sigaltstack ()
(and
-.BR sigaction (2))
+.MR sigaction 2 )
to install an alternate signal stack that is employed by a handler
for the
.B SIGSEGV
@@ -354,9 +354,9 @@ if (sigaction(SIGSEGV, &sa, NULL) == \-1) {
.EE
.in
.SH SEE ALSO
-.BR execve (2),
-.BR setrlimit (2),
-.BR sigaction (2),
-.BR siglongjmp (3),
-.BR sigsetjmp (3),
-.BR signal (7)
+.MR execve 2 ,
+.MR setrlimit 2 ,
+.MR sigaction 2 ,
+.MR siglongjmp 3 ,
+.MR sigsetjmp 3 ,
+.MR signal 7