mirror of https://github.com/mkerrisk/man-pages
sigaltstack.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6635bc0197
commit
5270d24e4f
|
@ -31,12 +31,12 @@ sigaltstack \- set and/or get signal stack context
|
||||||
.B #include <signal.h>
|
.B #include <signal.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
|
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
|
||||||
.sp
|
.PP
|
||||||
.in -4n
|
.in -4n
|
||||||
Feature Test Macro Requirements for glibc (see
|
Feature Test Macro Requirements for glibc (see
|
||||||
.BR feature_test_macros (7)):
|
.BR feature_test_macros (7)):
|
||||||
.in
|
.in
|
||||||
.sp
|
.PP
|
||||||
.BR sigaltstack ():
|
.BR sigaltstack ():
|
||||||
.ad l
|
.ad l
|
||||||
.RS 4
|
.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
|
execution of a signal handler if the establishment of that handler (see
|
||||||
.BR sigaction (2))
|
.BR sigaction (2))
|
||||||
requested it.
|
requested it.
|
||||||
|
.PP
|
||||||
The normal sequence of events for using an alternate signal stack
|
The normal sequence of events for using an alternate signal stack
|
||||||
is the following:
|
is the following:
|
||||||
.TP 3
|
.TP 3
|
||||||
|
@ -85,7 +85,7 @@ established signal stack.
|
||||||
If we are interested in performing just one
|
If we are interested in performing just one
|
||||||
of these tasks, then the other argument can be specified as NULL.
|
of these tasks, then the other argument can be specified as NULL.
|
||||||
Each of these arguments is a structure of the following type:
|
Each of these arguments is a structure of the following type:
|
||||||
.sp
|
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
typedef struct {
|
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,
|
to cover the usual size requirements for an alternate signal stack,
|
||||||
and the constant \fBMINSIGSTKSZ\fP defines the minimum
|
and the constant \fBMINSIGSTKSZ\fP defines the minimum
|
||||||
size required to execute a signal handler.
|
size required to execute a signal handler.
|
||||||
|
.PP
|
||||||
When a signal handler is invoked on the alternate stack,
|
When a signal handler is invoked on the alternate stack,
|
||||||
the kernel automatically aligns the address given in \fIss.ss_sp\fP
|
the kernel automatically aligns the address given in \fIss.ss_sp\fP
|
||||||
to a suitable address boundary for the underlying hardware architecture.
|
to a suitable address boundary for the underlying hardware architecture.
|
||||||
|
.PP
|
||||||
To disable an existing stack, specify \fIss.ss_flags\fP
|
To disable an existing stack, specify \fIss.ss_flags\fP
|
||||||
as \fBSS_DISABLE\fP.
|
as \fBSS_DISABLE\fP.
|
||||||
In this case, the remaining fields
|
In this case, the remaining fields
|
||||||
in \fIss\fP are ignored.
|
in \fIss\fP are ignored.
|
||||||
|
.PP
|
||||||
If \fIold_ss\fP is not NULL, then it is used to return information about
|
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
|
the alternate signal stack which was in effect prior to the
|
||||||
call to
|
call to
|
||||||
|
@ -167,7 +167,6 @@ T{
|
||||||
.BR sigaltstack ()
|
.BR sigaltstack ()
|
||||||
T} Thread safety MT-Safe
|
T} Thread safety MT-Safe
|
||||||
.TE
|
.TE
|
||||||
|
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2009, SUSv2, SVr4.
|
POSIX.1-2001, POSIX.1-2009, SUSv2, SVr4.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
|
|
Loading…
Reference in New Issue