mirror of https://github.com/mkerrisk/man-pages
sigaltstack.2: Give 'oss' argument a more meaningful name: 'old_ss'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
eddeadede6
commit
6635bc0197
|
@ -30,7 +30,7 @@ sigaltstack \- set and/or get signal stack context
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <signal.h>
|
.B #include <signal.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" oss );
|
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
|
||||||
.sp
|
.sp
|
||||||
.in -4n
|
.in -4n
|
||||||
Feature Test Macro Requirements for glibc (see
|
Feature Test Macro Requirements for glibc (see
|
||||||
|
@ -79,7 +79,7 @@ on the alternate signal stack by
|
||||||
specifying the \fBSA_ONSTACK\fP flag.
|
specifying the \fBSA_ONSTACK\fP flag.
|
||||||
.P
|
.P
|
||||||
The \fIss\fP argument is used to specify a new
|
The \fIss\fP argument is used to specify a new
|
||||||
alternate signal stack, while the \fIoss\fP argument
|
alternate signal stack, while the \fIold_ss\fP argument
|
||||||
is used to retrieve information about the currently
|
is used to retrieve information about the currently
|
||||||
established signal stack.
|
established signal stack.
|
||||||
If we are interested in performing just one
|
If we are interested in performing just one
|
||||||
|
@ -114,13 +114,13 @@ 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.
|
||||||
|
|
||||||
If \fIoss\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
|
||||||
.BR sigaltstack ().
|
.BR sigaltstack ().
|
||||||
The \fIoss.ss_sp\fP and \fIoss.ss_size\fP fields return the starting
|
The \fIold_ss.ss_sp\fP and \fIold_ss.ss_size\fP fields return the starting
|
||||||
address and size of that stack.
|
address and size of that stack.
|
||||||
The \fIoss.ss_flags\fP may return either of the following values:
|
The \fIold_ss.ss_flags\fP may return either of the following values:
|
||||||
.TP
|
.TP
|
||||||
.B SS_ONSTACK
|
.B SS_ONSTACK
|
||||||
The process is currently executing on the alternate signal stack.
|
The process is currently executing on the alternate signal stack.
|
||||||
|
@ -137,7 +137,7 @@ returns 0 on success, or \-1 on failure with
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
.TP
|
.TP
|
||||||
.B EFAULT
|
.B EFAULT
|
||||||
Either \fIss\fP or \fIoss\fP is not NULL and points to an area
|
Either \fIss\fP or \fIold_ss\fP is not NULL and points to an area
|
||||||
outside of the process's address space.
|
outside of the process's address space.
|
||||||
.TP
|
.TP
|
||||||
.B EINVAL
|
.B EINVAL
|
||||||
|
|
Loading…
Reference in New Issue