diff options
| -rw-r--r-- | man2/killpg.2 | 4 | ||||
| -rw-r--r-- | man2/mknod.2 | 4 | ||||
| -rw-r--r-- | man2/mmap.2 | 8 | ||||
| -rw-r--r-- | man2/nice.2 | 4 | ||||
| -rw-r--r-- | man2/readlink.2 | 3 | ||||
| -rw-r--r-- | man2/seteuid.2 | 3 | ||||
| -rw-r--r-- | man2/setpgid.2 | 9 | ||||
| -rw-r--r-- | man2/setreuid.2 | 4 | ||||
| -rw-r--r-- | man2/sigaltstack.2 | 4 | ||||
| -rw-r--r-- | man2/symlink.2 | 4 | ||||
| -rw-r--r-- | man2/sync.2 | 4 | ||||
| -rw-r--r-- | man2/truncate.2 | 7 | ||||
| -rw-r--r-- | man2/vfork.2 | 8 | ||||
| -rw-r--r-- | man2/wait.2 | 5 |
14 files changed, 43 insertions, 28 deletions
diff --git a/man2/killpg.2 b/man2/killpg.2 index 7118315d35..5e85acb6d1 100644 --- a/man2/killpg.2 +++ b/man2/killpg.2 @@ -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 () diff --git a/man2/mknod.2 b/man2/mknod.2 index 75e55ec77b..b960601d0d 100644 --- a/man2/mknod.2 +++ b/man2/mknod.2 @@ -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 diff --git a/man2/mmap.2 b/man2/mmap.2 index e6ec18260e..ff9aa989a6 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@ -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, diff --git a/man2/nice.2 b/man2/nice.2 index cd2d1fb027..b79d26004c 100644 --- a/man2/nice.2 +++ b/man2/nice.2 @@ -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 diff --git a/man2/readlink.2 b/man2/readlink.2 index d86e7e401e..3332d5af9b 100644 --- a/man2/readlink.2 +++ b/man2/readlink.2 @@ -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 (): diff --git a/man2/seteuid.2 b/man2/seteuid.2 index fd800efc24..7c7a097049 100644 --- a/man2/seteuid.2 +++ b/man2/seteuid.2 @@ -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 diff --git a/man2/setpgid.2 b/man2/setpgid.2 index 702119e4ee..f1135c1ac2 100644 --- a/man2/setpgid.2 +++ b/man2/setpgid.2 @@ -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) diff --git a/man2/setreuid.2 b/man2/setreuid.2 index 63c86257ad..575d04f20b 100644 --- a/man2/setreuid.2 +++ b/man2/setreuid.2 @@ -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 diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2 index 374c1cae6f..cbb7b852e9 100644 --- a/man2/sigaltstack.2 +++ b/man2/sigaltstack.2 @@ -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 diff --git a/man2/symlink.2 b/man2/symlink.2 index 99b1324cf9..7f4f087a1f 100644 --- a/man2/symlink.2 +++ b/man2/symlink.2 @@ -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 (): diff --git a/man2/sync.2 b/man2/sync.2 index 5e7d776cda..135166b794 100644 --- a/man2/sync.2 +++ b/man2/sync.2 @@ -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 diff --git a/man2/truncate.2 b/man2/truncate.2 index 5f7ecb67ae..5f025e6f33 100644 --- a/man2/truncate.2 +++ b/man2/truncate.2 @@ -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 diff --git a/man2/vfork.2 b/man2/vfork.2 index 205afe04ad..36d741327e 100644 --- a/man2/vfork.2 +++ b/man2/vfork.2 @@ -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: diff --git a/man2/wait.2 b/man2/wait.2 index ccbbc59097..fc56d035fb 100644 --- a/man2/wait.2 +++ b/man2/wait.2 @@ -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 |
