diff options
| -rw-r--r-- | man2/signal.2 | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/man2/signal.2 b/man2/signal.2 index 7d5312c2f3..1a846b2417 100644 --- a/man2/signal.2 +++ b/man2/signal.2 @@ -155,6 +155,10 @@ glibc also defines (the BSD-derived) .I sig_t if .B _BSD_SOURCE +(glibc 2.19 and earlier) +or +.BR _DEFAULT_SOURCE +(glibc 2.19 and later) is defined. Without use of such a type, the declaration of .BR signal () @@ -232,34 +236,18 @@ wrapper function does not invoke the kernel system call. Instead, it calls .BR sigaction (2) using flags that supply BSD semantics. -This default behavior is provided as long as the -.B _BSD_SOURCE -feature test macro is defined. -By default, +This default behavior is provided as long as a suitable +feature test macro is defined: .B _BSD_SOURCE -is defined; -it is also implicitly defined if one defines -.BR _GNU_SOURCE , -and can of course be explicitly defined. -.IP * -On glibc 2 and later, if the -.B _BSD_SOURCE -feature test macro is not defined, then +on glibc 2.19 and earlier or +.BR _DEFAULT_SOURCE +in glibc 2.19 and later. +(By default, these macros are defined; see +.BR feature_test_macros (7) +for details.) +If such a feature test macro is not defined, then .BR signal () provides System\ V semantics. -(The default implicit definition of -.B _BSD_SOURCE -is not provided if one invokes -.BR gcc (1) -in one of its standard modes -.RI ( -std=xxx " or " -ansi ) -or defines various other feature test macros such as -.BR _POSIX_SOURCE , -.BR _XOPEN_SOURCE , -or -.BR _SVID_SOURCE ; -see -.BR feature_test_macros (7).) .\" .\" System V semantics are also provided if one uses the separate .\" .BR sysv_signal (3) |
