From 5270d24e4f9c4f92e9e15e1810222217c9b45428 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 22 May 2017 15:11:23 +0200 Subject: [PATCH] sigaltstack.2: ffix Signed-off-by: Michael Kerrisk --- man2/sigaltstack.2 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2 index 59f6d945e..fc621329b 100644 --- a/man2/sigaltstack.2 +++ b/man2/sigaltstack.2 @@ -31,12 +31,12 @@ sigaltstack \- set and/or get signal stack context .B #include .sp .BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss ); -.sp +.PP .in -4n Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .in -.sp +.PP .BR sigaltstack (): .ad l .RS 4 @@ -57,7 +57,7 @@ An alternate signal stack is used during the execution of a signal handler if the establishment of that handler (see .BR sigaction (2)) requested it. - +.PP The normal sequence of events for using an alternate signal stack is the following: .TP 3 @@ -85,7 +85,7 @@ established signal stack. If we are interested in performing just one of these tasks, then the other argument can be specified as NULL. Each of these arguments is a structure of the following type: -.sp + .in +4n .nf typedef struct { @@ -104,16 +104,16 @@ The constant \fBSIGSTKSZ\fP is defined to be large enough to cover the usual size requirements for an alternate signal stack, and the constant \fBMINSIGSTKSZ\fP defines the minimum size required to execute a signal handler. - +.PP When a signal handler is invoked on the alternate stack, the kernel automatically aligns the address given in \fIss.ss_sp\fP to a suitable address boundary for the underlying hardware architecture. - +.PP To disable an existing stack, specify \fIss.ss_flags\fP as \fBSS_DISABLE\fP. In this case, the remaining fields in \fIss\fP are ignored. - +.PP If \fIold_ss\fP is not NULL, then it is used to return information about the alternate signal stack which was in effect prior to the call to @@ -167,7 +167,6 @@ T{ .BR sigaltstack () T} Thread safety MT-Safe .TE - .SH CONFORMING TO POSIX.1-2001, POSIX.1-2009, SUSv2, SVr4. .SH NOTES