From c3dfd2c880a868deec5b7446ce0469d99d9b7515 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 22 Jun 2007 17:42:06 +0000 Subject: [PATCH] ffix --- man2/setpgid.2 | 4 +++- man2/setresuid.2 | 4 +++- man2/shmctl.2 | 8 ++++++-- man3/INFINITY.3 | 6 +++++- man3/bsd_signal.3 | 4 +++- man3/dlopen.3 | 4 +++- man3/ftw.3 | 4 +++- man3/insque.3 | 4 +++- man3/perror.3 | 4 +++- man3/posix_memalign.3 | 4 +++- man3/sigpause.3 | 8 ++++++-- man3/sigsetops.3 | 4 +++- man3/strerror.3 | 4 +++- man3/strptime.3 | 4 +++- man3/sysv_signal.3 | 4 +++- man3/termios.3 | 4 +++- 16 files changed, 56 insertions(+), 18 deletions(-) diff --git a/man2/setpgid.2 b/man2/setpgid.2 index f578c7714..1312bb3bd 100644 --- a/man2/setpgid.2 +++ b/man2/setpgid.2 @@ -204,7 +204,9 @@ from the BSD function Also System V has a function with the same name, but it is identical to .BR setsid (2). .LP -To get the prototypes under glibc, define both _XOPEN_SOURCE and +To get the prototypes under glibc, define both +.B _XOPEN_SOURCE +and _XOPEN_SOURCE_EXTENDED, or use "#define _XOPEN_SOURCE \fIn\fP" for some integer \fIn\fP larger than or equal to 500. .SH "SEE ALSO" diff --git a/man2/setresuid.2 b/man2/setresuid.2 index ff2f7a697..0b5d80727 100644 --- a/man2/setresuid.2 +++ b/man2/setresuid.2 @@ -85,7 +85,9 @@ they also appear on HP-UX and some of the BSDs. Under HP-UX and FreeBSD the prototype is found in .IR . Under Linux the prototype is given by glibc since version 2.3.2 -provided _GNU_SOURCE is defined. +provided +.B _GNU_SOURCE +is defined. .SH "SEE ALSO" .BR getresuid (2), .BR getuid (2), diff --git a/man2/shmctl.2 b/man2/shmctl.2 index d5fd2b525..5e8250077 100644 --- a/man2/shmctl.2 +++ b/man2/shmctl.2 @@ -160,7 +160,9 @@ This structure is of type (thus, a cast is required), defined in .I -if the _GNU_SOURCE feature test macro is defined: +if the +.B _GNU_SOURCE +feature test macro is defined: .nf .in +2n @@ -194,7 +196,9 @@ structure whose fields contain information about system resources consumed by shared memory. This structure is defined in .I -if the _GNU_SOURCE feature test macro is defined: +if the +.B _GNU_SOURCE +feature test macro is defined: .nf .in +2n diff --git a/man3/INFINITY.3 b/man3/INFINITY.3 index 65043dbce..2bd83b764 100644 --- a/man3/INFINITY.3 +++ b/man3/INFINITY.3 @@ -72,7 +72,11 @@ Availability of the NAN macro can be tested using and similarly for INFINITY, HUGE_VALF, HUGE_VALL. They will be defined by .I -if _ISOC99_SOURCE or _GNU_SOURCE is defined, or __STDC_VERSION__ is defined +if +.B _ISOC99_SOURCE +or +.B _GNU_SOURCE +is defined, or __STDC_VERSION__ is defined and has a value not less than 199901L. .SH "SEE ALSO" .BR fpclassify (3), diff --git a/man3/bsd_signal.3 b/man3/bsd_signal.3 index 386681d67..9aa4a3abe 100644 --- a/man3/bsd_signal.3 +++ b/man3/bsd_signal.3 @@ -82,7 +82,9 @@ The use of .B sighandler_t is a GNU extension; this type is only defined if -the _GNU_SOURCE feature test macro is defined. +the +.B _GNU_SOURCE +feature test macro is defined. .SH "SEE ALSO" .BR sigaction (2), .BR signal (2), diff --git a/man3/dlopen.3 b/man3/dlopen.3 index 427089ea1..6db32c008 100644 --- a/man3/dlopen.3 +++ b/man3/dlopen.3 @@ -372,7 +372,9 @@ and .SH NOTES The symbols RTLD_DEFAULT and RTLD_NEXT are defined by .I -only when _GNU_SOURCE was defined before including it. +only when +.B _GNU_SOURCE +was defined before including it. .\" .LP .\" The string returned by .\" .BR dlerror () diff --git a/man3/ftw.3 b/man3/ftw.3 index cbdc44f10..654cd2f72 100644 --- a/man3/ftw.3 +++ b/man3/ftw.3 @@ -192,7 +192,9 @@ to return immediately with the return value Other return values could be associated with new actions in the future; \fIfn\fP() should not return values other than those listed above. -The feature test macro _GNU_SOURCE must be defined in order to +The feature test macro +.B _GNU_SOURCE +must be defined in order to obtain the definition of \fBFTW_ACTIONRETVAL\fP from \fI\fP. .RE .TP diff --git a/man3/insque.3 b/man3/insque.3 index 3bfe01ba6..974b1860a 100644 --- a/man3/insque.3 +++ b/man3/insque.3 @@ -72,7 +72,9 @@ struct qelem { .fi .RE -This is still what you will get if _GNU_SOURCE is defined before +This is still what you will get if +.B _GNU_SOURCE +is defined before including \fI\fP. The location of the prototypes for these functions differs among several diff --git a/man3/perror.3 b/man3/perror.3 index d73fa682e..99b824b89 100644 --- a/man3/perror.3 +++ b/man3/perror.3 @@ -116,7 +116,9 @@ and are defined by glibc, but in .IR . .\" and only when _BSD_SOURCE is defined. -.\" When _GNU_SOURCE is defined, the symbols +.\" When +.B _GNU_SOURCE +is defined, the symbols .\" .I _sys_nerr .\" and .\" .I _sys_errlist diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3 index 1ee108221..10c407f9e 100644 --- a/man3/posix_memalign.3 +++ b/man3/posix_memalign.3 @@ -118,7 +118,9 @@ Everybody agrees that .BR posix_memalign () is declared in \fI\fP. In order to declare it, glibc needs -_GNU_SOURCE defined, or _XOPEN_SOURCE defined to a value not less than 600. +_GNU_SOURCE defined, or +.B _XOPEN_SOURCE +defined to a value not less than 600. On some systems .BR memalign () diff --git a/man3/sigpause.3 b/man3/sigpause.3 index b47b41043..57ef5485f 100644 --- a/man3/sigpause.3 +++ b/man3/sigpause.3 @@ -80,8 +80,12 @@ Libc4 and libc5 only know about the BSD version. 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. +_GNU_SOURCE, or +.B _SVID_SOURCE +is defined. +The System V version is used if +.B _XOPEN_SOURCE +is defined. .\" .\" For the BSD version, one usually uses a zero .\" .I sigmask diff --git a/man3/sigsetops.3 b/man3/sigsetops.3 index 1ef102ed9..fd5ae22e2 100644 --- a/man3/sigsetops.3 +++ b/man3/sigsetops.3 @@ -93,7 +93,9 @@ is not a valid signal. POSIX.1-2001. .SH NOTES .SS Glibc Notes -If the _GNU_SOURCE feature test macro is defined, then \fI\fP +If the +.B _GNU_SOURCE +feature test macro is defined, then \fI\fP exposes three other functions for manipulating signal sets. .TP diff --git a/man3/strerror.3 b/man3/strerror.3 index f21300e2e..8186a4673 100644 --- a/man3/strerror.3 +++ b/man3/strerror.3 @@ -74,7 +74,9 @@ thread safe. This function is available in two versions: an XSI-compliant version specified in POSIX.1-2001, and a GNU-specific version (available since glibc 2.0). -If _XOPEN_SOURCE is defined with the value 600, +If +.B _XOPEN_SOURCE +is defined with the value 600, then the XSI-compliant version is provided, otherwise the GNU-specific version is provided. diff --git a/man3/strptime.3 b/man3/strptime.3 index 75be3f08a..62e00153b 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -288,7 +288,9 @@ field if any of the year, month, or day elements changed. .PP This function is available since libc 4.6.8. Linux libc4 and libc5 includes define the prototype unconditionally; -glibc2 includes provide a prototype only when _XOPEN_SOURCE or _GNU_SOURCE +glibc2 includes provide a prototype only when +.B _XOPEN_SOURCE +or _GNU_SOURCE are defined. .PP Before libc 5.4.13 whitespace (and the 'n' and 't' specifications) diff --git a/man3/sysv_signal.3 b/man3/sysv_signal.3 index 10bef4e06..1745d2799 100644 --- a/man3/sysv_signal.3 +++ b/man3/sysv_signal.3 @@ -79,7 +79,9 @@ The use of .B sighandler_t is a GNU extension; this type is only defined if -the _GNU_SOURCE feature test macro is defined. +the +.B _GNU_SOURCE +feature test macro is defined. .SH "SEE ALSO" .BR sigaction (2), .BR signal (2), diff --git a/man3/termios.3 b/man3/termios.3 index 73e991a33..d45f765db 100644 --- a/man3/termios.3 +++ b/man3/termios.3 @@ -317,7 +317,9 @@ Input is converted to lowercase, except for characters preceded by \\. On output, uppercase characters are preceded by \\ and lowercase characters are converted to uppercase. .\" [requires _BSD_SOURCE or _SVID_SOURCE or _XOPEN_SOURCE] -.\" glibc is probably now wrong to allow _XOPEN_SOURCE to expose XCASE. +.\" glibc is probably now wrong to allow +.B _XOPEN_SOURCE +to expose XCASE. .TP .B ECHO Echo input characters.