mirror of https://github.com/mkerrisk/man-pages
sigaltstack.2: Some minor reworking of the text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b3e2be839b
commit
1614a08551
|
@ -84,7 +84,10 @@ is used to retrieve information about the currently
|
|||
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:
|
||||
.PP
|
||||
The
|
||||
.I stack_t
|
||||
type used to type the arguments of this function is defined as follows:
|
||||
|
||||
.in +4n
|
||||
.nf
|
||||
|
@ -97,18 +100,24 @@ typedef struct {
|
|||
.in
|
||||
|
||||
To establish a new alternate signal stack,
|
||||
\fIss.ss_flags\fP is set to zero, and \fIss.ss_sp\fP and
|
||||
\fIss.ss_size\fP specify the starting address and size of
|
||||
the stack.
|
||||
the fields of this structure are set as follows:
|
||||
.TP
|
||||
.I ss.ss_flags
|
||||
This field is set to zero.
|
||||
.TP
|
||||
.I ss.ss_sp
|
||||
This field specifies the starting address of the stack.
|
||||
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.
|
||||
.TP
|
||||
.I ss.ss_size
|
||||
This field specifies the size of the stack.
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue