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.
|
.\" various sections.
|
||||||
.\" 2008-07-11, mtk: rewrote and expanded portability discussion.
|
.\" 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
|
.SH NAME
|
||||||
signal \- ANSI C signal handling
|
signal \- ANSI C signal handling
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -141,15 +141,16 @@ safely called from inside a signal handler.
|
||||||
.PP
|
.PP
|
||||||
The use of
|
The use of
|
||||||
.I sighandler_t
|
.I sighandler_t
|
||||||
is a GNU extension.
|
is a GNU extension, exposed if
|
||||||
Various versions of libc predefine this type; libc4 and libc5 define
|
|
||||||
.IR SignalHandler ;
|
|
||||||
glibc defines
|
|
||||||
.I sig_t
|
|
||||||
and, when
|
|
||||||
.B _GNU_SOURCE
|
.B _GNU_SOURCE
|
||||||
is defined, also
|
is defined;
|
||||||
.IR sighandler_t .
|
.\" 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
|
Without use of such a type, the declaration of
|
||||||
.BR signal ()
|
.BR signal ()
|
||||||
is the somewhat harder to read:
|
is the somewhat harder to read:
|
||||||
|
|
Loading…
Reference in New Issue