From b80f966bb0705af274b8ea038b94ae2434cb3160 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 31 Oct 2010 05:31:47 +0100 Subject: [PATCH] getresuid.2, mremap.2, poll.2, remap_file_pages.2, setresuid.2, splice.2, sync_file_range.2, syscall.2, tee.2, vmsplice.2, INFINITY.3, aio_init.3, asprintf.3, assert_perror.3, basename.3, bsd_signal.3, canonicalize_file_name.3, clog10.3, crypt.3, dl_iterate_phdr.3, dlopen.3, encrypt.3, exp10.3, fcloseall.3, fenv.3, fopencookie.3, ftw.3, getaddrinfo_a.3, getloadavg.3, getutent.3, grantpt.3, hsearch.3, lseek64.3, memmem.3, mempcpy.3, pow10.3, program_invocation_name.3, ptsname.3, putgrent.3, sched_getcpu.3, sincos.3, strchr.3, strfry.3, strnlen.3, strptime.3, strstr.3, strverscmp.3, swab.3, sysv_signal.3, tsearch.3, unlockpt.3, wcwidth.3: Add reference to feature_test_macros(7) Some pages simply list feature test macro requirements in the form: #define #GNU_SOURCE #include For these pages, add a "See feature_test_macros(7)" comment on the "#define" line. Signed-off-by: Michael Kerrisk --- man2/getresuid.2 | 2 +- man2/mremap.2 | 2 +- man2/poll.2 | 2 +- man2/remap_file_pages.2 | 2 +- man2/setresuid.2 | 2 +- man2/splice.2 | 2 +- man2/sync_file_range.2 | 2 +- man2/syscall.2 | 2 +- man2/tee.2 | 2 +- man2/vmsplice.2 | 2 +- man3/INFINITY.3 | 2 +- man3/aio_init.3 | 2 +- man3/asprintf.3 | 2 +- man3/assert_perror.3 | 2 +- man3/basename.3 | 2 +- man3/bsd_signal.3 | 2 +- man3/canonicalize_file_name.3 | 2 +- man3/clog10.3 | 2 +- man3/crypt.3 | 2 +- man3/dl_iterate_phdr.3 | 2 +- man3/dlopen.3 | 2 +- man3/encrypt.3 | 6 +++--- man3/exp10.3 | 2 +- man3/fcloseall.3 | 2 +- man3/fenv.3 | 2 +- man3/fopencookie.3 | 2 +- man3/ftw.3 | 2 +- man3/getaddrinfo_a.3 | 2 +- man3/getloadavg.3 | 2 +- man3/getutent.3 | 3 ++- man3/grantpt.3 | 2 +- man3/hsearch.3 | 2 +- man3/lseek64.3 | 2 +- man3/memmem.3 | 2 +- man3/mempcpy.3 | 4 ++-- man3/pow10.3 | 2 +- man3/program_invocation_name.3 | 2 +- man3/ptsname.3 | 4 ++-- man3/putgrent.3 | 2 +- man3/sched_getcpu.3 | 2 +- man3/sincos.3 | 2 +- man3/strchr.3 | 2 +- man3/strfry.3 | 2 +- man3/strnlen.3 | 2 +- man3/strptime.3 | 2 +- man3/strstr.3 | 2 +- man3/strverscmp.3 | 2 +- man3/swab.3 | 2 +- man3/sysv_signal.3 | 2 +- man3/tsearch.3 | 2 +- man3/unlockpt.3 | 2 +- man3/wcwidth.3 | 2 +- 52 files changed, 57 insertions(+), 56 deletions(-) diff --git a/man2/getresuid.2 b/man2/getresuid.2 index fb7b59980..95b140584 100644 --- a/man2/getresuid.2 +++ b/man2/getresuid.2 @@ -28,7 +28,7 @@ .SH NAME getresuid, getresgid \- get real, effective and saved user/group IDs .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man2/mremap.2 b/man2/mremap.2 index 4bb68ef6b..1ce2b155f 100644 --- a/man2/mremap.2 +++ b/man2/mremap.2 @@ -33,7 +33,7 @@ mremap \- remap a virtual memory address .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man2/poll.2 b/man2/poll.2 index 55df72dc3..5abec4b7d 100644 --- a/man2/poll.2 +++ b/man2/poll.2 @@ -37,7 +37,7 @@ poll, ppoll \- wait for some event on a file descriptor .sp .BI "int poll(struct pollfd *" fds ", nfds_t " nfds ", int " timeout ); .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int ppoll(struct pollfd *" fds ", nfds_t " nfds ", " diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2 index 9610fdc22..5bc5cee11 100644 --- a/man2/remap_file_pages.2 +++ b/man2/remap_file_pages.2 @@ -28,7 +28,7 @@ remap_file_pages \- create a nonlinear file mapping .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int remap_file_pages(void *" addr ", size_t " size ", int " prot , diff --git a/man2/setresuid.2 b/man2/setresuid.2 index 5ba5bb4b3..122be2521 100644 --- a/man2/setresuid.2 +++ b/man2/setresuid.2 @@ -27,7 +27,7 @@ .SH NAME setresuid, setresgid \- set real, effective and saved user or group ID .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man2/splice.2 b/man2/splice.2 index ff2745e6e..afc1c0e1b 100644 --- a/man2/splice.2 +++ b/man2/splice.2 @@ -28,7 +28,7 @@ splice \- splice data to/from a pipe .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "ssize_t splice(int " fd_in ", loff_t *" off_in ", int " fd_out , diff --git a/man2/sync_file_range.2 b/man2/sync_file_range.2 index 2f5225488..0fe936c11 100644 --- a/man2/sync_file_range.2 +++ b/man2/sync_file_range.2 @@ -32,7 +32,7 @@ sync_file_range \- sync a file segment with disk .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "int sync_file_range(int " fd ", off64_t " offset ", off64_t " nbytes , diff --git a/man2/syscall.2 b/man2/syscall.2 index bc5765d41..da1c56184 100644 --- a/man2/syscall.2 +++ b/man2/syscall.2 @@ -40,7 +40,7 @@ syscall \- indirect system call .SH SYNOPSIS .nf -.BR "#define _GNU_SOURCE " " /* or _BSD_SOURCE or _SVID_SOURCE */" +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BR "#include " "/* For SYS_xxx definitions */" diff --git a/man2/tee.2 b/man2/tee.2 index 23ffab2c0..92c4e27dc 100644 --- a/man2/tee.2 +++ b/man2/tee.2 @@ -28,7 +28,7 @@ tee \- duplicating pipe content .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "ssize_t tee(int " fd_in ", int " fd_out ", size_t " len \ diff --git a/man2/vmsplice.2 b/man2/vmsplice.2 index 421eb3f1a..69c5c1599 100644 --- a/man2/vmsplice.2 +++ b/man2/vmsplice.2 @@ -28,7 +28,7 @@ vmsplice \- splice user pages into a pipe .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .B #include diff --git a/man3/INFINITY.3 b/man3/INFINITY.3 index 7dbf190b8..eca2097cd 100644 --- a/man3/INFINITY.3 +++ b/man3/INFINITY.3 @@ -25,7 +25,7 @@ INFINITY, NAN, HUGE_VAL, HUGE_VALF, HUGE_VALL \- floating-point constants .SH SYNOPSIS .nf -.B #define _ISOC99_SOURCE +.BR "#define _ISOC99_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/aio_init.3 b/man3/aio_init.3 index fda4a8cce..a976abea2 100644 --- a/man3/aio_init.3 +++ b/man3/aio_init.3 @@ -26,7 +26,7 @@ aio_init \- POSIX asynchronous I/O initialization .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B "#include " .BI "void aio_init(const struct aioinit *" init ); diff --git a/man3/asprintf.3 b/man3/asprintf.3 index 0f3cb14b4..0a8a91026 100644 --- a/man3/asprintf.3 +++ b/man3/asprintf.3 @@ -26,7 +26,7 @@ .SH NAME asprintf, vasprintf \- print to allocated string .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/assert_perror.3 b/man3/assert_perror.3 index 94ca31f28..3ee1c2d96 100644 --- a/man3/assert_perror.3 +++ b/man3/assert_perror.3 @@ -28,7 +28,7 @@ assert_perror \- test errnum and abort .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "void assert_perror(int " errnum ); diff --git a/man3/basename.3 b/man3/basename.3 index 228c2a397..5b2907fbd 100644 --- a/man3/basename.3 +++ b/man3/basename.3 @@ -132,7 +132,7 @@ after .br .nf -.B " #define _GNU_SOURCE" +.BR " #define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B " #include " diff --git a/man3/bsd_signal.3 b/man3/bsd_signal.3 index 4f8065c30..b17b8c980 100644 --- a/man3/bsd_signal.3 +++ b/man3/bsd_signal.3 @@ -24,7 +24,7 @@ .SH NAME bsd_signal \- signal handling with BSD semantics .SH SYNOPSIS -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/canonicalize_file_name.3 b/man3/canonicalize_file_name.3 index 50ceb4471..1552662da 100644 --- a/man3/canonicalize_file_name.3 +++ b/man3/canonicalize_file_name.3 @@ -6,7 +6,7 @@ .SH NAME canonicalize_file_name \- return the canonicalized filename .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/clog10.3 b/man3/clog10.3 index a7d48ed64..e6b96105b 100644 --- a/man3/clog10.3 +++ b/man3/clog10.3 @@ -5,7 +5,7 @@ .SH NAME clog10, clog10f, clog10l \- base-10 logarithm of a complex number .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/crypt.3 b/man3/crypt.3 index 5673a382c..c013a3895 100644 --- a/man3/crypt.3 +++ b/man3/crypt.3 @@ -37,7 +37,7 @@ crypt, crypt_r \- password and data encryption .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/dl_iterate_phdr.3 b/man3/dl_iterate_phdr.3 index 8a1d0472e..cbc9f5421 100644 --- a/man3/dl_iterate_phdr.3 +++ b/man3/dl_iterate_phdr.3 @@ -26,7 +26,7 @@ dl_iterate_phdr \- walk through list of shared objects .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include \fBint dl_iterate_phdr(\fP diff --git a/man3/dlopen.3 b/man3/dlopen.3 index cc4cd4aef..33684884c 100644 --- a/man3/dlopen.3 +++ b/man3/dlopen.3 @@ -330,7 +330,7 @@ returns. Glibc adds two functions not described by POSIX, with prototypes .sp .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int dladdr(void *" addr ", Dl_info *" info ); diff --git a/man3/encrypt.3 b/man3/encrypt.3 index 60e5be2a6..f3f88a25a 100644 --- a/man3/encrypt.3 +++ b/man3/encrypt.3 @@ -25,19 +25,19 @@ .SH NAME encrypt, setkey, encrypt_r, setkey_r \- encrypt 64-bit messages .SH SYNOPSIS -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp .BI "void encrypt(char " block "[64], int " edflag ); .sp -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp .BI "void setkey(const char *" key ); .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B "#include " .sp diff --git a/man3/exp10.3 b/man3/exp10.3 index 4ec7d9032..0ac111cf0 100644 --- a/man3/exp10.3 +++ b/man3/exp10.3 @@ -35,7 +35,7 @@ exp10, exp10f, exp10l \- base-10 exponential function .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/fcloseall.3 b/man3/fcloseall.3 index d2dddcbf9..4235b7696 100644 --- a/man3/fcloseall.3 +++ b/man3/fcloseall.3 @@ -26,7 +26,7 @@ fcloseall \- close all open streams .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .B int fcloseall(void); diff --git a/man3/fenv.3 b/man3/fenv.3 index ab6ce1438..110919818 100644 --- a/man3/fenv.3 +++ b/man3/fenv.3 @@ -285,7 +285,7 @@ to set individual floating-point traps, and to query the state. .sp .nf -.B "#define _GNU_SOURCE" +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B "#include " .sp diff --git a/man3/fopencookie.3 b/man3/fopencookie.3 index 2c3a7013c..d2223b435 100644 --- a/man3/fopencookie.3 +++ b/man3/fopencookie.3 @@ -26,7 +26,7 @@ fopencookie \- opening a custom stream .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "FILE *fopencookie(void *" cookie ", const char *" mode , diff --git a/man3/ftw.3 b/man3/ftw.3 index b5ffeb62a..6c42a35b6 100644 --- a/man3/ftw.3 +++ b/man3/ftw.3 @@ -43,7 +43,7 @@ ftw, nftw \- file tree walk .BI " int " typeflag ), .BI " int " nopenfd ); .sp -.B #define _XOPEN_SOURCE 500 +.BR "#define _XOPEN_SOURCE 500" " /* See feature_test_macros(7) */" .B #include .sp .BI "int nftw(const char *" dirpath , diff --git a/man3/getaddrinfo_a.3 b/man3/getaddrinfo_a.3 index 679cfac93..c7a4022a5 100644 --- a/man3/getaddrinfo_a.3 +++ b/man3/getaddrinfo_a.3 @@ -30,7 +30,7 @@ getaddrinfo_a, gai_suspend, gai_error, gai_cancel \- asynchronous network address and service translation .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int getaddrinfo_a(int " "mode" ", struct gaicb *" "list[]" , diff --git a/man3/getloadavg.3 b/man3/getloadavg.3 index 0763f3526..b5f2ddb8e 100644 --- a/man3/getloadavg.3 +++ b/man3/getloadavg.3 @@ -34,7 +34,7 @@ getloadavg \- get system load averages .SH SYNOPSIS .nf -.B #define _BSD_SOURCE +.BR "#define _BSD_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int getloadavg(double " loadavg[] ", int " nelem ); diff --git a/man3/getutent.3 b/man3/getutent.3 index e6a8ebc11..844611800 100644 --- a/man3/getutent.3 +++ b/man3/getutent.3 @@ -208,7 +208,8 @@ The above functions are not thread-safe. Glibc adds reentrant versions .sp .nf -.BR "#define _GNU_SOURCE" " /* or _SVID_SOURCE or _BSD_SOURCE */" +.BR "#define _GNU_SOURCE" " /* or _SVID_SOURCE or _BSD_SOURCE; +.R "\& see feature_test_macros(7) */ .B #include .sp .BI "int getutent_r(struct utmp *" ubuf ", struct utmp **" ubufp ); diff --git a/man3/grantpt.3 b/man3/grantpt.3 index 597ba14d6..e0257cc85 100644 --- a/man3/grantpt.3 +++ b/man3/grantpt.3 @@ -6,7 +6,7 @@ grantpt \- grant access to the slave pseudoterminal .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/hsearch.3 b/man3/hsearch.3 index b392b55f0..a302548b0 100644 --- a/man3/hsearch.3 +++ b/man3/hsearch.3 @@ -46,7 +46,7 @@ hsearch_r \- hash table management .sp .B "void hdestroy(void);" .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/lseek64.3 b/man3/lseek64.3 index 2c9893508..5f704d1df 100644 --- a/man3/lseek64.3 +++ b/man3/lseek64.3 @@ -24,7 +24,7 @@ .SH NAME lseek64 \- reposition 64-bit read/write file offset .SH SYNOPSIS -.B #define _LARGEFILE64_SOURCE +.BR "#define _LARGEFILE64_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .br diff --git a/man3/memmem.3 b/man3/memmem.3 index 81b4179c8..fe8f7b1c7 100644 --- a/man3/memmem.3 +++ b/man3/memmem.3 @@ -30,7 +30,7 @@ memmem \- locate a substring .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "void *memmem(const void *" haystack ", size_t " haystacklen , diff --git a/man3/mempcpy.3 b/man3/mempcpy.3 index bf18bb800..20aca2f39 100644 --- a/man3/mempcpy.3 +++ b/man3/mempcpy.3 @@ -8,13 +8,13 @@ mempcpy, wmempcpy \- copy memory area .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp .BI "void *mempcpy(void *" dest ", const void *" src ", size_t " n ); .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/pow10.3 b/man3/pow10.3 index ff632eb9b..a5db763eb 100644 --- a/man3/pow10.3 +++ b/man3/pow10.3 @@ -25,7 +25,7 @@ pow10, pow10f, pow10l \- base-10 power functions .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "double pow10(double " x ); diff --git a/man3/program_invocation_name.3 b/man3/program_invocation_name.3 index 12a549971..4336de67a 100644 --- a/man3/program_invocation_name.3 +++ b/man3/program_invocation_name.3 @@ -24,7 +24,7 @@ program_invocation_name, program_invocation_short_name \- \ obtain name used to invoke calling program .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "extern char *" program_invocation_name ; diff --git a/man3/ptsname.3 b/man3/ptsname.3 index 7aad8e564..9d4bad5dd 100644 --- a/man3/ptsname.3 +++ b/man3/ptsname.3 @@ -8,13 +8,13 @@ ptsname, ptsname_r \- get the name of the slave pseudoterminal .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp .BI "char *ptsname(int " fd ");" .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/putgrent.3 b/man3/putgrent.3 index ef376c3c1..042b30e32 100644 --- a/man3/putgrent.3 +++ b/man3/putgrent.3 @@ -5,7 +5,7 @@ .SH NAME putgrent \- write a group database entry to a file .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/sched_getcpu.3 b/man3/sched_getcpu.3 index 12a42a13d..c7f94ebda 100644 --- a/man3/sched_getcpu.3 +++ b/man3/sched_getcpu.3 @@ -26,7 +26,7 @@ sched_getcpu \- determine CPU on which the calling thread is running .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .B int sched_getcpu(void); diff --git a/man3/sincos.3 b/man3/sincos.3 index bde90d826..8ced05756 100644 --- a/man3/sincos.3 +++ b/man3/sincos.3 @@ -8,7 +8,7 @@ sincos, sincosf, sincosl \- calculate sin and cos simultaneously .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "void sincos(double " x ", double *" sin ", double *" cos ); diff --git a/man3/strchr.3 b/man3/strchr.3 index 11d9a6c12..0d041e689 100644 --- a/man3/strchr.3 +++ b/man3/strchr.3 @@ -39,7 +39,7 @@ strchr, strrchr, strchrnul \- locate character in string .sp .BI "char *strrchr(const char *" s ", int " c ); .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "char *strchrnul(const char *" s ", int " c ); diff --git a/man3/strfry.3 b/man3/strfry.3 index 347fc1e33..b0ed7aaf2 100644 --- a/man3/strfry.3 +++ b/man3/strfry.3 @@ -30,7 +30,7 @@ strfry \- randomize a string .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/strnlen.3 b/man3/strnlen.3 index 6553f4446..ec066a91c 100644 --- a/man3/strnlen.3 +++ b/man3/strnlen.3 @@ -13,7 +13,7 @@ strnlen \- determine the length of a fixed-size string .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .sp .B #include .sp diff --git a/man3/strptime.3 b/man3/strptime.3 index 5c981b954..c06a61cc3 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -30,7 +30,7 @@ .SH NAME strptime \- convert a string representation of time to a time tm structure .SH SYNOPSIS -.BR "#define _XOPEN_SOURCE" " /* glibc2 needs this */" +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/strstr.3 b/man3/strstr.3 index 2fb4558a4..88fd61ab6 100644 --- a/man3/strstr.3 +++ b/man3/strstr.3 @@ -37,7 +37,7 @@ strstr, strcasestr \- locate a substring .sp .BI "char *strstr(const char *" haystack ", const char *" needle ); .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .sp .B #include .sp diff --git a/man3/strverscmp.3 b/man3/strverscmp.3 index 18e4f16a1..9d699f387 100644 --- a/man3/strverscmp.3 +++ b/man3/strverscmp.3 @@ -25,7 +25,7 @@ strverscmp \- compare two version strings .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/swab.3 b/man3/swab.3 index c131623eb..629618c22 100644 --- a/man3/swab.3 +++ b/man3/swab.3 @@ -31,7 +31,7 @@ swab \- swap adjacent bytes .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "void swab(const void *" from ", void *" to ", ssize_t " n ); diff --git a/man3/sysv_signal.3 b/man3/sysv_signal.3 index c2a891fc2..e6d96c8ba 100644 --- a/man3/sysv_signal.3 +++ b/man3/sysv_signal.3 @@ -24,7 +24,7 @@ .SH NAME sysv_signal \- signal handling with System V semantics .SH SYNOPSIS -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/tsearch.3 b/man3/tsearch.3 index 565d33137..c8e2db6f2 100644 --- a/man3/tsearch.3 +++ b/man3/tsearch.3 @@ -41,7 +41,7 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary tree .BI " const VISIT " which , .BI " const int " depth "));" .sp -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/unlockpt.3 b/man3/unlockpt.3 index 575d49124..557ad3ee4 100644 --- a/man3/unlockpt.3 +++ b/man3/unlockpt.3 @@ -6,7 +6,7 @@ unlockpt \- unlock a pseudoterminal master/slave pair .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .br .B #include .sp diff --git a/man3/wcwidth.3 b/man3/wcwidth.3 index 89abe17bf..aa57c885d 100644 --- a/man3/wcwidth.3 +++ b/man3/wcwidth.3 @@ -15,7 +15,7 @@ wcwidth \- determine columns needed for a wide character .SH SYNOPSIS .nf -.B #define _XOPEN_SOURCE +.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include .sp .BI "int wcwidth(wchar_t " c );