Clarify discussion of feature test macros that are needed to

expose Sysem V and BSD versions of this function in glibc.
This commit is contained in:
Michael Kerrisk 2007-05-27 16:10:33 +00:00
parent 2addd91025
commit 98817d8387
1 changed files with 9 additions and 3 deletions

View File

@ -68,11 +68,16 @@ function, that takes a
.I "sigset_t *" .I "sigset_t *"
parameter (instead of an parameter (instead of an
.IR int ). .IR int ).
.LP .SS Linux Notes
On Linux, this routine is a system call only on the Sparc (sparc64) On Linux, this routine is a system call only on the Sparc (sparc64)
architecture. architecture.
Libc4 and libc5 only know about the BSD version. Libc4 and libc5 only know about the BSD version.
Glibc uses the BSD version unless _XOPEN_SOURCE is defined.
Glibc uses the BSD version if the _BSD_SOURCE feature test macro is
defined and none of _POSIX_SOURCE, _POSIX_C_SOURCE, _XOPEN_SOURCE,
_GNU_SOURCE, or _SVID_SOURCE is defined.
The System V version is used if _XOPEN_SOURCE is defined.
.\" .\"
.\" For the BSD version, one usually uses a zero .\" For the BSD version, one usually uses a zero
.\" .I sigmask .\" .I sigmask
@ -83,4 +88,5 @@ Glibc uses the BSD version unless _XOPEN_SOURCE is defined.
.BR sigprocmask (2), .BR sigprocmask (2),
.BR sigsuspend (2), .BR sigsuspend (2),
.BR sigblock (3), .BR sigblock (3),
.BR sigvec (3) .BR sigvec (3),
.BR feature_test_macros (7)