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 .in
.sp .sp
.BR setgroups (): .BR setgroups ():
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.PP .PP
.BR getgroups () .BR getgroups ()

View File

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

View File

@ -47,7 +47,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR mincore (): .BR mincore ():
_BSD_SOURCE || _SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR mincore () .BR mincore ()
returns a vector that indicates whether pages returns a vector that indicates whether pages

View File

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

View File

@ -41,7 +41,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR stime (): .BR stime ():
_SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR stime () .BR stime ()
sets the system's idea of the time and date. sets the system's idea of the time and date.

View File

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

View File

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

View File

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

View File

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

View File

@ -37,7 +37,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR dysize (): .BR dysize ():
_BSD_SOURCE || _SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The function returns 365 for a normal year and 366 for a leap year. The function returns 365 for a normal year and 366 for a leap year.
The calculation for leap year is based on: The calculation for leap year is based on:

View File

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

View File

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

View File

@ -41,7 +41,10 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.BR futimes (), .BR futimes (),
.BR lutimes (): .BR lutimes ():
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR futimes () .BR futimes ()
changes the access and modification times of a file in the same way as changes the access and modification times of a file in the same way as

View File

@ -39,7 +39,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR getdirentries (): .BR getdirentries ():
_BSD_SOURCE || _SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
Read directory entries from the directory specified by Read directory entries from the directory specified by
.I fd .I fd

View File

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

View File

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

View File

@ -61,7 +61,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR getmntent_r (): .BR getmntent_r ():
_BSD_SOURCE || _SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
These routines are used to access the filesystem description file These routines are used to access the filesystem description file
.I /etc/fstab .I /etc/fstab

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.BR gsignal (), .BR gsignal (),
.BR ssignal (): .BR ssignal ():
_SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
Don't use these functions under Linux. Don't use these functions under Linux.
Due to a historical mistake, under Linux these functions are Due to a historical mistake, under Linux these functions are

View File

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

View File

@ -43,15 +43,15 @@ Feature Test Macro Requirements for glibc (see
.ad l .ad l
.RS 4 .RS 4
.PD 0 .PD 0
_BSD_SOURCE /* Since glibc 2.19: */ _DEFAULT_SOURCE
.br
|| /* Glibc 2.19 and earlier: */ _BSD_SOURCE
.br .br
|| /* Since glibc 2.10: */ || /* Since glibc 2.10: */
.RS 4
_POSIX_C_SOURCE\ >=\ 200809L _POSIX_C_SOURCE\ >=\ 200809L
.ad .ad
.PD .PD
.RE .RE
.RE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR mkdtemp () .BR mkdtemp ()

View File

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

View File

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

View File

@ -46,13 +46,19 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR psignal (): .BR psignal ():
_SVID_SOURCE || _BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE || _SVID_SOURCE
.br .br
.BR psiginfo (): .BR psiginfo ():
_POSIX_C_SOURCE\ >=\ 200809L _POSIX_C_SOURCE\ >=\ 200809L
.br .br
.IR sys_siglist : .IR sys_siglist :
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR psignal () .BR psignal ()

View File

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

View File

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

View File

@ -42,7 +42,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR rpmatch (): .BR rpmatch ():
_SVID_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR rpmatch () .BR rpmatch ()
handles a user response to yes or no questions, with handles a user response to yes or no questions, with

View File

@ -69,7 +69,10 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.BR setbuffer (), .BR setbuffer (),
.BR setlinebuf (): .BR setlinebuf ():
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The three types of buffering available are unbuffered, block buffered, and The three types of buffering available are unbuffered, block buffered, and
line buffered. line buffered.

View File

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

View File

@ -45,7 +45,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
All functions shown above: All functions shown above:
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
These functions are provided in glibc as a compatibility interface These functions are provided in glibc as a compatibility interface
for programs that make use of the historical BSD signal API. for programs that make use of the historical BSD signal API.

View File

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

View File

@ -53,7 +53,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR vsyslog (): .BR vsyslog ():
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR closelog () .BR closelog ()
closes the file descriptor being used to write to the system logger. closes the file descriptor being used to write to the system logger.

View File

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

View File

@ -81,7 +81,10 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.BR cfsetspeed (), .BR cfsetspeed (),
.BR cfmakeraw (): .BR cfmakeraw ():
_BSD_SOURCE Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The termios functions describe a general terminal interface that is The termios functions describe a general terminal interface that is
provided to control asynchronous communications ports. provided to control asynchronous communications ports.

View File

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

View File

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