From 98817d8387ed6a44637e39087848d6f012d582d2 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 May 2007 16:10:33 +0000 Subject: [PATCH] Clarify discussion of feature test macros that are needed to expose Sysem V and BSD versions of this function in glibc. --- man3/sigpause.3 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/man3/sigpause.3 b/man3/sigpause.3 index 134063a74..1cb3dc80f 100644 --- a/man3/sigpause.3 +++ b/man3/sigpause.3 @@ -68,11 +68,16 @@ function, that takes a .I "sigset_t *" parameter (instead of an .IR int ). -.LP +.SS Linux Notes On Linux, this routine is a system call only on the Sparc (sparc64) architecture. + 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 .\" .I sigmask @@ -83,4 +88,5 @@ Glibc uses the BSD version unless _XOPEN_SOURCE is defined. .BR sigprocmask (2), .BR sigsuspend (2), .BR sigblock (3), -.BR sigvec (3) +.BR sigvec (3), +.BR feature_test_macros (7)