sigpause.3: BSD sigpause() goes away in glibc 2.19

Reviewed-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-01-07 10:55:42 +13:00
parent 38029932e7
commit 0588c9a30f
1 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,7 @@ sigpause \- atomically release blocked signals and wait for interrupt
.nf
.B #include <signal.h>
.sp
.BI "int sigpause(int " sigmask "); /* BSD */"
.BI "int sigpause(int " sigmask "); /* BSD (but see NOTES) */"
.sp
.BI "int sigpause(int " sig "); /* System V / UNIX 95 */"
.fi
@ -98,6 +98,12 @@ is defined.
Otherwise, the System V version is used (and
.BR _XOPEN_SOURCE
must be defined to obtain the declaration).
Since glibc 2.19, only the System V version is exposed by
.IR <signal.h> ;
applications that formerly used the BSD
.BR sigpause ()
should be amended to use
.BR sigsuspend (2).
.\"
.\" For the BSD version, one usually uses a zero
.\" .I sigmask