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:
Michael Kerrisk 2017-05-22 15:06:04 +02:00
parent eddeadede6
commit 6635bc0197
1 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ sigaltstack \- set and/or get signal stack context
.SH SYNOPSIS
.B #include <signal.h>
.sp
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" oss );
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
@ -79,7 +79,7 @@ on the alternate signal stack by
specifying the \fBSA_ONSTACK\fP flag.
.P
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
established signal stack.
If we are interested in performing just one
@ -114,13 +114,13 @@ as \fBSS_DISABLE\fP.
In this case, the remaining fields
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
call to
.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.
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
.B SS_ONSTACK
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
.TP
.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.
.TP
.B EINVAL