aboutsummaryrefslogtreecommitdiffstats
path: root/man3/getutent.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-02-08 15:52:14 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-01 20:01:03 +0100
commit7f0ec8eed6b67f0dab1cc7ca86defe9f73fb010c (patch)
tree62ac20848e4d3c6a6d90b6345827bec6f2390e73 /man3/getutent.3
parent38e3518901069623800ac153a2b40ad5e0eba343 (diff)
downloadman-pages-7f0ec8eed6b67f0dab1cc7ca86defe9f73fb010c.tar.gz
endian.3, getloadavg.3, getutent.3, inet.3, makedev.3, rexec.3: Update FTM requirements (_DEFAULT_SOURCE)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/getutent.3')
-rw-r--r--man3/getutent.316
1 files changed, 14 insertions, 2 deletions
diff --git a/man3/getutent.3 b/man3/getutent.3
index df7a40b174..96ecd239de 100644
--- a/man3/getutent.3
+++ b/man3/getutent.3
@@ -270,8 +270,6 @@ The above functions are not thread-safe.
Glibc adds reentrant versions
.sp
.nf
-.BR "#define _GNU_SOURCE" " /* or _SVID_SOURCE or _BSD_SOURCE;
-.RB "\& see " feature_test_macros "(7) */"
.B #include <utmp.h>
.sp
.BI "int getutent_r(struct utmp *" ubuf ", struct utmp **" ubufp );
@@ -283,6 +281,20 @@ Glibc adds reentrant versions
.BI " struct utmp *" ubuf ", struct utmp **" ubufp );
.fi
.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR getutent_r (),
+.BR getutid_r (),
+.BR getutline_r ():
+.nf
+ _GNU_SOURCE
+ || /* since glibc 2.19: */ _DEFAULT_SOURCE
+ || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
+.fi
+.sp
These functions are GNU extensions, analogs of the functions of the
same name without the _r suffix.
The