dirfd.3, readdir.3, scandir.3, seekdir.3, telldir.3: Update FTM requirements (mostly _DEFAULT_SOURCE)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-12 17:02:35 +01:00
parent 2b1b042487
commit a30128b4cc
5 changed files with 13 additions and 10 deletions

View File

@ -42,8 +42,8 @@ Feature Test Macro Requirements for glibc (see
.RS 4 .RS 4
.PD 0 .PD 0
.ad l .ad l
_BSD_SOURCE || _SVID_SOURCE /* Since glibc 2.10: */ _POSIX_C_SOURCE\ >=\ 200809L
|| /* Since glibc 2.10: */ _POSIX_C_SOURCE\ >=\ 200809L || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.PD .PD
.RE .RE
.ad .ad

View File

@ -55,8 +55,8 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.BR readdir_r (): .BR readdir_r ():
.RS 4 .RS 4
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE
_SVID_SOURCE || _POSIX_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE .RE
.ad b .ad b
.SH DESCRIPTION .SH DESCRIPTION

View File

@ -101,9 +101,8 @@ Feature Test Macro Requirements for glibc (see
.RS 4 .RS 4
.PD 0 .PD 0
.ad b .ad b
_BSD_SOURCE || _SVID_SOURCE /* Since glibc 2.10: */ _POSIX_C_SOURCE\ >=\ 200809L
.br || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
|| /* Since glibc 2.10: */ _POSIX_C_SOURCE\ >=\ 200809L
.PD .PD
.RE .RE
.sp .sp
@ -290,7 +289,7 @@ and glibc 2.10 changed the definition of
to match the standard. to match the standard.
.SH EXAMPLE .SH EXAMPLE
.nf .nf
#define _SVID_SOURCE #define _DEFAULT_SOURCE
/* print files in current directory in reverse order */ /* print files in current directory in reverse order */
#include <dirent.h> #include <dirent.h>

View File

@ -45,7 +45,9 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR seekdir (): .BR seekdir ():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE _XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR seekdir () .BR seekdir ()

View File

@ -43,7 +43,9 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR telldir (): .BR telldir ():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE _XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR telldir () .BR telldir ()