.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" aeb, various minor fixes
-.TH SIGALTSTACK 2 2008-10-04 "Linux" "Linux Programmer's Manual"
+.TH SIGALTSTACK 2 2010-09-26 "Linux" "Linux Programmer's Manual"
.SH NAME
sigaltstack \- set and/or get signal stack context
.SH SYNOPSIS
.in
.sp
.BR sigaltstack ():
-_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
-.\" .br
-.\" .BR sigstack ():
-.\" _BSD_SOURCE || _XOPEN_SOURCE >= 500
+.ad l
+.RS 4
+.PD 0
+_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+.br
+|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
+.PD
+.RE
+.ad
.SH DESCRIPTION
.BR sigaltstack ()
allows a process to define a new alternate
on an alternate signal stack.
.P
On most hardware architectures supported by Linux, stacks grow
-downwards.
+downward.
.BR sigaltstack ()
automatically takes account
of the direction of stack growth.
supersedes the older
.BR sigstack ()
call.
-For backwards compatibility, glibc also provides
+For backward compatibility, glibc also provides
.BR sigstack ().
All new applications should be written using
.BR sigaltstack ().