aboutsummaryrefslogtreecommitdiffstats
path: root/man3/strdup.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2010-09-18 05:29:52 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2010-09-22 16:59:01 +0200
commitd5c58392461e8c1308cd788acb01e9c6007ba9fa (patch)
treed09a0bd9ba1a88a8c44fe3f74283acdfea3f7160 /man3/strdup.3
parent5d73bb755eb30d4c6ff9060752f9b03b32a6e33d (diff)
downloadman-pages-d5c58392461e8c1308cd788acb01e9c6007ba9fa.tar.gz
strdup.3: Updated feature test macro requirements for strdup()
Added requirements for glibc 2.12. Corrected requirements for glibc versions before 2.12. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/strdup.3')
-rw-r--r--man3/strdup.316
1 files changed, 14 insertions, 2 deletions
diff --git a/man3/strdup.3 b/man3/strdup.3
index eb576b484d..3120b1cac3 100644
--- a/man3/strdup.3
+++ b/man3/strdup.3
@@ -47,10 +47,21 @@ Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.PD 0
+.ad l
.sp
.BR strdup ():
-_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
-.br
+.RS 4
+.TP 4
+Since glibc 2.12:
+_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED ||
+_POSIX_C_SOURCE\ >=\ 200809L
+.TP
+Before glibc 2.12:
+_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
+.RE
+.PP
.BR strndup ():
.RS 4
.TP 4
@@ -64,6 +75,7 @@ _GNU_SOURCE
.BR strdupa (),
.BR strndupa ():
_GNU_SOURCE
+.ad
.PD
.SH DESCRIPTION
The