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

View File

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

View File

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

View File

@ -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.

View File

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

View File

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

View File

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

View File

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

View File

@ -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:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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.

View File

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

View File

@ -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.

View File

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

View File

@ -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.

View File

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

View File

@ -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.

View File

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

View File

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