signal.2: Note that 'sig_t' requires _BSD_SOURCE

Also remove some old Linux libc details

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-05-05 11:51:22 +12:00
parent 6f0b2c8c9a
commit 2606a2b068
1 changed files with 10 additions and 9 deletions

View File

@ -31,7 +31,7 @@
.\" various sections.
.\" 2008-07-11, mtk: rewrote and expanded portability discussion.
.\"
.TH SIGNAL 2 2008-07-11 "Linux" "Linux Programmer's Manual"
.TH SIGNAL 2 2012-05-05 "Linux" "Linux Programmer's Manual"
.SH NAME
signal \- ANSI C signal handling
.SH SYNOPSIS
@ -141,15 +141,16 @@ safely called from inside a signal handler.
.PP
The use of
.I sighandler_t
is a GNU extension.
Various versions of libc predefine this type; libc4 and libc5 define
.IR SignalHandler ;
glibc defines
.I sig_t
and, when
is a GNU extension, exposed if
.B _GNU_SOURCE
is defined, also
.IR sighandler_t .
is defined;
.\" libc4 and libc5 define
.\" .IR SignalHandler ;
glibc also defines (the BSD-derived)
.I sig_t
if
.B _BSD_SOURCE
is defined.
Without use of such a type, the declaration of
.BR signal ()
is the somewhat harder to read: