diff options
41 files changed, 176 insertions, 61 deletions
diff --git a/man2/getgroups.2 b/man2/getgroups.2 index 8adf9d1ee5..305341805e 100644 --- a/man2/getgroups.2 +++ b/man2/getgroups.2 @@ -49,7 +49,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR setgroups (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION .PP .BR getgroups () diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2 index 30d377e2ee..5a8b71f047 100644 --- a/man2/gettimeofday.2 +++ b/man2/gettimeofday.2 @@ -56,7 +56,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR settimeofday (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The functions .BR gettimeofday () diff --git a/man2/mincore.2 b/man2/mincore.2 index 5a3a887338..e4f7093c4e 100644 --- a/man2/mincore.2 +++ b/man2/mincore.2 @@ -47,7 +47,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR mincore (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION .BR mincore () returns a vector that indicates whether pages diff --git a/man2/readv.2 b/man2/readv.2 index 6e83f8c9e2..93f2b6fc9f 100644 --- a/man2/readv.2 +++ b/man2/readv.2 @@ -54,7 +54,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR preadv (), .BR pwritev (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR readv () diff --git a/man2/stime.2 b/man2/stime.2 index 201e6e6097..a7943d5b6c 100644 --- a/man2/stime.2 +++ b/man2/stime.2 @@ -41,7 +41,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR stime (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION .BR stime () sets the system's idea of the time and date. diff --git a/man2/wait4.2 b/man2/wait4.2 index b08702797f..39ea26bd4e 100644 --- a/man2/wait4.2 +++ b/man2/wait4.2 @@ -54,15 +54,17 @@ Feature Test Macro Requirements for glibc (see .sp .ad l .BR wait3 (): -.RS 4 -_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 -.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED -.RE + Since glibc 2.19: + _DEFAULT_SOURCE || _XOPEN_SOURCE\ >=\ 500 + Glibc 2.19 and earlier: + _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 +.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED .br .BR wait4 (): -.RS 4 -_BSD_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .ad .SH DESCRIPTION These functions are obsolete; use diff --git a/man3/addseverity.3 b/man3/addseverity.3 index dcb651db39..6043da3103 100644 --- a/man3/addseverity.3 +++ b/man3/addseverity.3 @@ -23,7 +23,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR addseverity (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION This function allows the introduction of new severity classes which can be addressed by the diff --git a/man3/adjtime.3 b/man3/adjtime.3 index 0cb5c4afa4..3463579049 100644 --- a/man3/adjtime.3 +++ b/man3/adjtime.3 @@ -38,7 +38,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR adjtime (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR adjtime () diff --git a/man3/cfree.3 b/man3/cfree.3 index f412185ff3..6dc81480d3 100644 --- a/man3/cfree.3 +++ b/man3/cfree.3 @@ -48,7 +48,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR cfree (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION This function should never be used. Use diff --git a/man3/dysize.3 b/man3/dysize.3 index fe7942f11b..cf6605cac9 100644 --- a/man3/dysize.3 +++ b/man3/dysize.3 @@ -37,7 +37,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR dysize (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION The function returns 365 for a normal year and 366 for a leap year. The calculation for leap year is based on: diff --git a/man3/fgetgrent.3 b/man3/fgetgrent.3 index 4bb7172a94..543b8f4c60 100644 --- a/man3/fgetgrent.3 +++ b/man3/fgetgrent.3 @@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR fgetgrent (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION The .BR fgetgrent () diff --git a/man3/fgetpwent.3 b/man3/fgetpwent.3 index c434b31a15..b409a7a93b 100644 --- a/man3/fgetpwent.3 +++ b/man3/fgetpwent.3 @@ -48,7 +48,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR fgetpwent (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION The .BR fgetpwent () diff --git a/man3/futimes.3 b/man3/futimes.3 index f5e9d685f9..85e7b1139e 100644 --- a/man3/futimes.3 +++ b/man3/futimes.3 @@ -41,7 +41,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR futimes (), .BR lutimes (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION .BR futimes () changes the access and modification times of a file in the same way as diff --git a/man3/getdirentries.3 b/man3/getdirentries.3 index 2030e3a540..e309af9fbf 100644 --- a/man3/getdirentries.3 +++ b/man3/getdirentries.3 @@ -39,7 +39,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR getdirentries (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION Read directory entries from the directory specified by .I fd diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3 index 5706faa2f7..8c3c36c338 100644 --- a/man3/getgrent_r.3 +++ b/man3/getgrent_r.3 @@ -47,7 +47,10 @@ _GNU_SOURCE .\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug? .br .BR fgetgrent_r (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION The functions .BR getgrent_r () diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3 index f00c44d33b..461cfa966b 100644 --- a/man3/getgrouplist.3 +++ b/man3/getgrouplist.3 @@ -42,7 +42,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR getgrouplist (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR getgrouplist () diff --git a/man3/getmntent.3 b/man3/getmntent.3 index 590fa8bf67..ed0a6ba907 100644 --- a/man3/getmntent.3 +++ b/man3/getmntent.3 @@ -61,7 +61,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR getmntent_r (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION These routines are used to access the filesystem description file .I /etc/fstab diff --git a/man3/getnetent_r.3 b/man3/getnetent_r.3 index 006c26b20c..be29049f52 100644 --- a/man3/getnetent_r.3 +++ b/man3/getnetent_r.3 @@ -55,9 +55,10 @@ Feature Test Macro Requirements for glibc (see .BR getnetent_r (), .BR getnetbyname_r (), .BR getnetbyaddr_r (): -.RS 4 -_BSD_SOURCE || _SVID_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION The diff --git a/man3/getprotoent_r.3 b/man3/getprotoent_r.3 index c9d71bb162..5ee6943d6a 100644 --- a/man3/getprotoent_r.3 +++ b/man3/getprotoent_r.3 @@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see .BR getprotoent_r (), .BR getprotobyname_r (), .BR getprotobynumber_r (): -.RS 4 -_BSD_SOURCE || _SVID_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION The diff --git a/man3/getpwent_r.3 b/man3/getpwent_r.3 index 4524f7c358..7b83cd8748 100644 --- a/man3/getpwent_r.3 +++ b/man3/getpwent_r.3 @@ -43,10 +43,16 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR getpwent_r (), -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .br .BR fgetpwent_r (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION The functions .BR getpwent_r () diff --git a/man3/getrpcent_r.3 b/man3/getrpcent_r.3 index a23645f0b4..6e40e8a614 100644 --- a/man3/getrpcent_r.3 +++ b/man3/getrpcent_r.3 @@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see .BR getrpcent_r (), .BR getrpcbyname_r (), .BR getrpcbynumber_r (): -.RS 4 -_BSD_SOURCE || _SVID_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION The diff --git a/man3/getservent_r.3 b/man3/getservent_r.3 index 89f5bbf284..0fa68dfae4 100644 --- a/man3/getservent_r.3 +++ b/man3/getservent_r.3 @@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see .BR getservent_r (), .BR getservbyname_r (), .BR getservbyport_r (): -.RS 4 -_BSD_SOURCE || _SVID_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION The diff --git a/man3/getspnam.3 b/man3/getspnam.3 index aa35936eac..a39fdcefdd 100644 --- a/man3/getspnam.3 +++ b/man3/getspnam.3 @@ -65,9 +65,10 @@ Feature Test Macro Requirements for glibc (see .BR getspnam_r (), .BR fgetspent_r (), .BR sgetspent_r (): -.RS 4 -_BSD_SOURCE || _SVID_SOURCE -.RE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION Long ago it was considered safe to have encrypted passwords openly diff --git a/man3/gsignal.3 b/man3/gsignal.3 index 92758f1ab9..0b42dd64ef 100644 --- a/man3/gsignal.3 +++ b/man3/gsignal.3 @@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR gsignal (), .BR ssignal (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION Don't use these functions under Linux. Due to a historical mistake, under Linux these functions are diff --git a/man3/initgroups.3 b/man3/initgroups.3 index 7c0e394641..4471815ca8 100644 --- a/man3/initgroups.3 +++ b/man3/initgroups.3 @@ -46,7 +46,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR initgroups (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR initgroups () diff --git a/man3/mkdtemp.3 b/man3/mkdtemp.3 index d6b1065b6a..3e89c20fa4 100644 --- a/man3/mkdtemp.3 +++ b/man3/mkdtemp.3 @@ -43,15 +43,15 @@ Feature Test Macro Requirements for glibc (see .ad l .RS 4 .PD 0 -_BSD_SOURCE +/* Since glibc 2.19: */ _DEFAULT_SOURCE +.br +|| /* Glibc 2.19 and earlier: */ _BSD_SOURCE .br || /* Since glibc 2.10: */ -.RS 4 _POSIX_C_SOURCE\ >=\ 200809L .ad .PD .RE -.RE .SH DESCRIPTION The .BR mkdtemp () diff --git a/man3/on_exit.3 b/man3/on_exit.3 index 76df747cff..bac34d9645 100644 --- a/man3/on_exit.3 +++ b/man3/on_exit.3 @@ -44,7 +44,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR on_exit (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION The .BR on_exit () diff --git a/man3/perror.3 b/man3/perror.3 index c012637b8d..6ce93b4147 100644 --- a/man3/perror.3 +++ b/man3/perror.3 @@ -51,7 +51,10 @@ Feature Test Macro Requirements for glibc (see .sp .IR sys_errlist , .IR sys_nerr : -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR perror () diff --git a/man3/psignal.3 b/man3/psignal.3 index 3570ffe102..83e663c78f 100644 --- a/man3/psignal.3 +++ b/man3/psignal.3 @@ -46,13 +46,19 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR psignal (): -_SVID_SOURCE || _BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .br .BR psiginfo (): _POSIX_C_SOURCE\ >=\ 200809L .br .IR sys_siglist : -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR psignal () diff --git a/man3/putpwent.3 b/man3/putpwent.3 index 39290cd11b..587de03919 100644 --- a/man3/putpwent.3 +++ b/man3/putpwent.3 @@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR putpwent (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION The .BR putpwent () diff --git a/man3/rcmd.3 b/man3/rcmd.3 index 0f944f2222..9cdef89ecb 100644 --- a/man3/rcmd.3 +++ b/man3/rcmd.3 @@ -88,7 +88,10 @@ Feature Test Macro Requirements for glibc (see .BR iruserok_af (), .BR ruserok (), .BR ruserok_af (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The .BR rcmd () diff --git a/man3/rpmatch.3 b/man3/rpmatch.3 index e7b5d18f63..534556a793 100644 --- a/man3/rpmatch.3 +++ b/man3/rpmatch.3 @@ -42,7 +42,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR rpmatch (): -_SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _SVID_SOURCE .SH DESCRIPTION .BR rpmatch () handles a user response to yes or no questions, with diff --git a/man3/setbuf.3 b/man3/setbuf.3 index bb44183011..d08e4b425a 100644 --- a/man3/setbuf.3 +++ b/man3/setbuf.3 @@ -69,7 +69,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR setbuffer (), .BR setlinebuf (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The three types of buffering available are unbuffered, block buffered, and line buffered. diff --git a/man3/setnetgrent.3 b/man3/setnetgrent.3 index 204f0d1392..0e2d159f79 100644 --- a/man3/setnetgrent.3 +++ b/man3/setnetgrent.3 @@ -39,7 +39,10 @@ Feature Test Macro Requirements for glibc (see .BR getnetgrent (), .BR getnetgrent_r (), .BR innetgr (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .ad b .SH DESCRIPTION The diff --git a/man3/sigvec.3 b/man3/sigvec.3 index bc7ced5db8..48be70d6df 100644 --- a/man3/sigvec.3 +++ b/man3/sigvec.3 @@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see .in .sp All functions shown above: -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION These functions are provided in glibc as a compatibility interface for programs that make use of the historical BSD signal API. diff --git a/man3/strsep.3 b/man3/strsep.3 index 8a40218425..ada36115e3 100644 --- a/man3/strsep.3 +++ b/man3/strsep.3 @@ -46,7 +46,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR strsep (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION If .I *stringp diff --git a/man3/syslog.3 b/man3/syslog.3 index 29eb93c496..ec6f297705 100644 --- a/man3/syslog.3 +++ b/man3/syslog.3 @@ -53,7 +53,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR vsyslog (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION .BR closelog () closes the file descriptor being used to write to the system logger. diff --git a/man3/tempnam.3 b/man3/tempnam.3 index 58a171539a..78fd1ffe39 100644 --- a/man3/tempnam.3 +++ b/man3/tempnam.3 @@ -38,7 +38,10 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR tempnam (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION .I "Never use this function." Use diff --git a/man3/termios.3 b/man3/termios.3 index 0585b95a6b..8cd7bff4c7 100644 --- a/man3/termios.3 +++ b/man3/termios.3 @@ -81,7 +81,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR cfsetspeed (), .BR cfmakeraw (): -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. diff --git a/man3/timegm.3 b/man3/timegm.3 index 6ef1f074e8..4e742458b0 100644 --- a/man3/timegm.3 +++ b/man3/timegm.3 @@ -41,7 +41,10 @@ Feature Test Macro Requirements for glibc (see .sp .BR timelocal (), .BR timegm (): -_BSD_SOURCE || _SVID_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION The functions .BR timelocal () diff --git a/man3/timeradd.3 b/man3/timeradd.3 index 035fdae8d1..17692735a8 100644 --- a/man3/timeradd.3 +++ b/man3/timeradd.3 @@ -50,7 +50,10 @@ Feature Test Macro Requirements for glibc (see .in .sp All functions shown above: -_BSD_SOURCE + Since glibc 2.19: + _DEFAULT_SOURCE + Glibc 2.19 and earlier: + _BSD_SOURCE .SH DESCRIPTION The macros are provided to operate on .I timeval |
