getgroups.2, gettimeofday.2, mincore.2, readv.2, stime.2, wait4.2, addseverity.3, adjtime.3, cfree.3, dysize.3, fgetgrent.3, fgetpwent.3, futimes.3, getdirentries.3, getgrent_r.3, getgrouplist.3, getmntent.3, getnetent_r.3, getprotoent_r.3, getpwent_r.3, getrpcent_r.3, getservent_r.3, getspnam.3, gsignal.3, initgroups.3, mkdtemp.3, on_exit.3, perror.3, psignal.3, putpwent.3, rcmd.3, rpmatch.3, setbuf.3, setnetgrent.3, sigvec.3, strsep.3, syslog.3, tempnam.3, termios.3, timegm.3, timeradd.3: Update FTM requirements (_DEFAULT_SOURCE)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-09 12:52:57 +01:00
parent 3dd87b7c99
commit 51c612fb9f
41 changed files with 176 additions and 61 deletions

View File

@ -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 ()

View File

@ -56,6 +56,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR settimeofday ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The functions

View File

@ -47,6 +47,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR mincore ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
.BR mincore ()

View File

@ -54,6 +54,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR preadv (),
.BR pwritev ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -41,6 +41,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR stime ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
.BR stime ()

View File

@ -54,15 +54,17 @@ Feature Test Macro Requirements for glibc (see
.sp
.ad l
.BR wait3 ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE || _XOPEN_SOURCE\ >=\ 500
Glibc 2.19 and earlier:
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
.RE
.br
.BR wait4 ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.RE
.ad
.SH DESCRIPTION
These functions are obsolete; use

View File

@ -23,6 +23,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR addseverity ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
This function allows the introduction of new severity classes

View File

@ -38,6 +38,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR adjtime ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -48,6 +48,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR cfree ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
This function should never be used.

View File

@ -37,6 +37,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR dysize ():
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.

View File

@ -45,6 +45,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR fgetgrent ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
The

View File

@ -48,6 +48,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR fgetpwent ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
The

View File

@ -41,6 +41,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR futimes (),
.BR lutimes ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
.BR futimes ()

View File

@ -39,6 +39,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR getdirentries ():
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

View File

@ -47,6 +47,9 @@ _GNU_SOURCE
.\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug?
.br
.BR fgetgrent_r ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
The functions

View File

@ -42,6 +42,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR getgrouplist ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -61,6 +61,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR getmntent_r ():
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

View File

@ -55,9 +55,10 @@ Feature Test Macro Requirements for glibc (see
.BR getnetent_r (),
.BR getnetbyname_r (),
.BR getnetbyaddr_r ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH DESCRIPTION
The

View File

@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see
.BR getprotoent_r (),
.BR getprotobyname_r (),
.BR getprotobynumber_r ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH DESCRIPTION
The

View File

@ -43,9 +43,15 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR getpwent_r (),
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.br
.BR fgetpwent_r ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
The functions

View File

@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see
.BR getrpcent_r (),
.BR getrpcbyname_r (),
.BR getrpcbynumber_r ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH DESCRIPTION
The

View File

@ -52,9 +52,10 @@ Feature Test Macro Requirements for glibc (see
.BR getservent_r (),
.BR getservbyname_r (),
.BR getservbyport_r ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH DESCRIPTION
The

View File

@ -65,9 +65,10 @@ Feature Test Macro Requirements for glibc (see
.BR getspnam_r (),
.BR fgetspent_r (),
.BR sgetspent_r ():
.RS 4
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH DESCRIPTION
Long ago it was considered safe to have encrypted passwords openly

View File

@ -45,6 +45,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR gsignal (),
.BR ssignal ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
Don't use these functions under Linux.

View File

@ -46,6 +46,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR initgroups ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -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 ()

View File

@ -44,6 +44,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR on_exit ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
The

View File

@ -51,6 +51,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.IR sys_errlist ,
.IR sys_nerr :
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -46,12 +46,18 @@ 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 :
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -45,6 +45,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR putpwent ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
The

View File

@ -88,6 +88,9 @@ Feature Test Macro Requirements for glibc (see
.BR iruserok_af (),
.BR ruserok (),
.BR ruserok_af ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The

View File

@ -42,6 +42,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR rpmatch ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION
.BR rpmatch ()

View File

@ -69,6 +69,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR setbuffer (),
.BR setlinebuf ():
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

View File

@ -39,6 +39,9 @@ Feature Test Macro Requirements for glibc (see
.BR getnetgrent (),
.BR getnetgrent_r (),
.BR innetgr ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.ad b
.SH DESCRIPTION

View File

@ -45,6 +45,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
All functions shown above:
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

View File

@ -46,6 +46,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR strsep ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
If

View File

@ -53,6 +53,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR vsyslog ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
.BR closelog ()

View File

@ -38,6 +38,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR tempnam ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
.I "Never use this function."

View File

@ -81,6 +81,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR cfsetspeed (),
.BR cfmakeraw ():
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

View File

@ -41,6 +41,9 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR timelocal (),
.BR timegm ():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
The functions

View File

@ -50,6 +50,9 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
All functions shown above:
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION
The macros are provided to operate on