mirror of https://github.com/mkerrisk/man-pages
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:
parent
6f0b2c8c9a
commit
2606a2b068
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue