OSDN Git Service

(split) LDP: Update original to LDP v3.41.
[linuxjm/LDP_man-pages.git] / original / man2 / signal.2
index 77c8111..304a551 100644 (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: