mirror of https://github.com/mkerrisk/man-pages
killpg.2, mknod.2, mmap.2, nice.2, readlink.2, seteuid.2, setpgid.2, setreuid.2, sigaltstack.2, symlink.2, sync.2, truncate.2, vfork.2, wait.2: Update FTM requirements (mainly _DEFAULT_SOURCE)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f8e7625cad
commit
f8619b6a26
|
@ -54,8 +54,10 @@ Feature Test Macro Requirements for glibc (see
|
|||
.ad l
|
||||
.TP 4
|
||||
.BR killpg ():
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
.BR killpg ()
|
||||
|
|
|
@ -39,8 +39,10 @@ Feature Test Macro Requirements for glibc (see
|
|||
.BR mknod ():
|
||||
.ad l
|
||||
.RS 4
|
||||
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -585,11 +585,15 @@ is 0 (NULL), then the mapped address will be 0 (NULL).
|
|||
|
||||
Certain
|
||||
.I flags
|
||||
constants are defined only if either
|
||||
constants are defined only if suitable feature test macros are defined
|
||||
(possibly by default):
|
||||
.BR _DEFAULT_SOURCE
|
||||
with glibc 2.19 or later;
|
||||
or
|
||||
.BR _BSD_SOURCE
|
||||
or
|
||||
.BR _SVID_SOURCE
|
||||
is defined.
|
||||
in glibc 2.19 and earlier.
|
||||
(Requiring
|
||||
.BR _GNU_SOURCE
|
||||
also suffices,
|
||||
|
|
|
@ -42,7 +42,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.in
|
||||
.sp
|
||||
.BR nice ():
|
||||
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
|
||||
_XOPEN_SOURCE
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
|
||||
.SH DESCRIPTION
|
||||
.BR nice ()
|
||||
adds
|
||||
|
|
|
@ -66,8 +66,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.ad l
|
||||
.BR readlink ():
|
||||
.RS 4
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
_XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.sp
|
||||
.BR readlinkat ():
|
||||
|
|
|
@ -47,7 +47,8 @@ Feature Test Macro Requirements for glibc (see
|
|||
.BR seteuid (),
|
||||
.BR setegid ():
|
||||
.RS 4
|
||||
_BSD_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
_POSIX_C_SOURCE\ >=\ 200112L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -82,15 +82,16 @@ _XOPEN_SOURCE\ >=\ 500
|
|||
.sp
|
||||
.BR setpgrp "() (POSIX.1):"
|
||||
.nf
|
||||
_SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
.br
|
||||
|| /* Since glibc 2.19: */ _BSD_SOURCE
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE
|
||||
.fi
|
||||
.sp
|
||||
.BR setpgrp "()\ (BSD),"
|
||||
.BR getpgrp "()\ (BSD) [before glibc 2.19]:"
|
||||
.BR getpgrp "()\ (BSD):"
|
||||
.nf
|
||||
[These are available only before glibc 2.19]
|
||||
_BSD_SOURCE &&
|
||||
!\ (_POSIX_SOURCE || _POSIX_C_SOURCE || _XOPEN_SOURCE ||
|
||||
_GNU_SOURCE || _SVID_SOURCE)
|
||||
|
|
|
@ -64,8 +64,10 @@ Feature Test Macro Requirements for glibc (see
|
|||
.BR setregid ():
|
||||
.RS 4
|
||||
.ad l
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.ad
|
||||
.RE
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -41,10 +41,10 @@ Feature Test Macro Requirements for glibc (see
|
|||
.ad l
|
||||
.RS 4
|
||||
.PD 0
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
.br
|
||||
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.PD
|
||||
.RE
|
||||
.ad
|
||||
|
|
|
@ -54,9 +54,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.ad l
|
||||
.BR symlink ():
|
||||
.RS 4
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| _POSIX_C_SOURCE\ >=\ 200112L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.sp
|
||||
.BR symlinkat ():
|
||||
|
|
|
@ -51,8 +51,10 @@ Feature Test Macro Requirements for glibc (see
|
|||
.BR sync ():
|
||||
.ad l
|
||||
.RS 4
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.ad
|
||||
.sp
|
||||
|
|
|
@ -61,18 +61,19 @@ Feature Test Macro Requirements for glibc (see
|
|||
.sp
|
||||
.BR truncate ():
|
||||
.RS 4
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
.br
|
||||
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.sp
|
||||
.BR ftruncate ():
|
||||
.RS 4
|
||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
_XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
.br
|
||||
|| /* Since glibc 2.3.5: */ _POSIX_C_SOURCE\ >=\ 200112L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.PD
|
||||
.ad b
|
||||
|
|
|
@ -47,11 +47,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.TP 4
|
||||
Since glibc 2.12:
|
||||
.nf
|
||||
_BSD_SOURCE ||
|
||||
.\" (_XOPEN_SOURCE\ >=\ 500 ||
|
||||
.\" _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
|
||||
(_XOPEN_SOURCE\ >=\ 500) &&
|
||||
! (_POSIX_C_SOURCE\ >=\ 200809L)
|
||||
(_XOPEN_SOURCE\ >=\ 500) && ! (_POSIX_C_SOURCE\ >=\ 200809L)
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.TP 4
|
||||
.fi
|
||||
Before glibc 2.12:
|
||||
|
|
|
@ -72,10 +72,9 @@ Feature Test Macro Requirements for glibc (see
|
|||
.PD 0
|
||||
.BR waitid ():
|
||||
.RS 4
|
||||
_SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
||||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|
||||
.br
|
||||
_XOPEN_SOURCE
|
||||
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|
||||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
|
||||
.RE
|
||||
.PD
|
||||
.ad
|
||||
|
|
Loading…
Reference in New Issue