mirror of https://github.com/mkerrisk/man-pages
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:
parent
2b1b042487
commit
a30128b4cc
|
@ -42,8 +42,8 @@ Feature Test Macro Requirements for glibc (see
|
|||
.RS 4
|
||||
.PD 0
|
||||
.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
|
||||
.RE
|
||||
.ad
|
||||
|
|
|
@ -55,8 +55,8 @@ Feature Test Macro Requirements for glibc (see
|
|||
.sp
|
||||
.BR readdir_r ():
|
||||
.RS 4
|
||||
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
|
||||
_SVID_SOURCE || _POSIX_SOURCE
|
||||
_POSIX_C_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
|
||||
.RE
|
||||
.ad b
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -101,9 +101,8 @@ Feature Test Macro Requirements for glibc (see
|
|||
.RS 4
|
||||
.PD 0
|
||||
.ad b
|
||||
_BSD_SOURCE || _SVID_SOURCE
|
||||
.br
|
||||
|| /* 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
|
||||
.RE
|
||||
.sp
|
||||
|
@ -290,7 +289,7 @@ and glibc 2.10 changed the definition of
|
|||
to match the standard.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
#define _SVID_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
/* print files in current directory in reverse order */
|
||||
#include <dirent.h>
|
||||
|
||||
|
|
|
@ -45,7 +45,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.in
|
||||
.sp
|
||||
.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
|
||||
The
|
||||
.BR seekdir ()
|
||||
|
|
|
@ -43,7 +43,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.in
|
||||
.sp
|
||||
.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
|
||||
The
|
||||
.BR telldir ()
|
||||
|
|
Loading…
Reference in New Issue