The \fIoss.ss_sp\fP and \fIoss.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:
-
.TP
.B SS_ONSTACK
The process is currently executing on the alternate
.TP
.B SS_DISABLE
The alternate signal stack is currently disabled.
-
.SH "RETURN VALUE"
\fBsigaltstack\fP returns 0 on success, or \-1 on failure with
\fIerrno\fP set to indicate the error.
-
.SH ERRORS
.TP
.B EFAULT
\fBsigaltstack\fP supersedes the older \fBsigstack\fP call.
For backwards compatibility, glibc also provides \fBsigstack\fP.
All new applications should be written using \fBsigaltstack\fB.
-
.SH HISTORY
BSD 4.2 had a \fIsigstack\fP() system call. It used a slightly
different struct, and had as major disadvantage that the caller
had to know the direction of stack growth.
-
.SH "CONFORMING TO"
SUSv2, SVr4, POSIX 1003.1-2001.
-
.SH "SEE ALSO"
.BR execve (2),
.BR setrlimit (2),