aboutsummaryrefslogtreecommitdiffstats
path: root/man3
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
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')
-rw-r--r--man3/endian.325
-rw-r--r--man3/getloadavg.314
-rw-r--r--man3/getutent.316
-rw-r--r--man3/inet.37
-rw-r--r--man3/makedev.311
-rw-r--r--man3/rexec.310
6 files changed, 76 insertions, 7 deletions
diff --git a/man3/endian.3 b/man3/endian.3
index 402cdf227e..d5d92c5e39 100644
--- a/man3/endian.3
+++ b/man3/endian.3
@@ -32,7 +32,6 @@ htobe64, htole64, be64toh, le64toh \-
convert values between host and big-/little-endian byte order
.SH SYNOPSIS
.nf
-.BR "#define _BSD_SOURCE" " /* See feature_test_macros(7) */"
.B #include <endian.h>
.BI "uint16_t htobe16(uint16_t " host_16bits );
@@ -50,6 +49,30 @@ convert values between host and big-/little-endian byte order
.BI "uint64_t be64toh(uint64_t " big_endian_64bits );
.BI "uint64_t le64toh(uint64_t " little_endian_64bits );
.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR htobe16 (),
+.BR htole16 (),
+.BR be16toh (),
+.BR le16toh (),
+.BR htobe32 (),
+.BR htole32 (),
+.BR be32toh (),
+.BR le32toh (),
+.BR htobe64 (),
+.BR htole64 (),
+.BR be64toh (),
+.BR le64toh ():
+.nf
+ Since glibc 2.19:
+ _DEFAULT_SOURCE
+ In glibc up to and including 2.19:
+ _BSD_SOURCE
+.fi
.SH DESCRIPTION
These functions convert the byte encoding of integer values from
the byte order that the current CPU (the "host") uses,
diff --git a/man3/getloadavg.3 b/man3/getloadavg.3
index 6f2304052c..8ef3c2e5dc 100644
--- a/man3/getloadavg.3
+++ b/man3/getloadavg.3
@@ -36,11 +36,23 @@
getloadavg \- get system load averages
.SH SYNOPSIS
.nf
-.BR "#define _BSD_SOURCE" " /* See feature_test_macros(7) */"
.B #include <stdlib.h>
.sp
.BI "int getloadavg(double " loadavg[] ", int " nelem );
.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR getloadavg ():
+.nf
+ Since glibc 2.19:
+ _DEFAULT_SOURCE
+ In glibc up to and including 2.19:
+ _BSD_SOURCE
+.fi
.SH DESCRIPTION
The
.BR getloadavg ()
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
diff --git a/man3/inet.3 b/man3/inet.3
index bd6deb0012..016eb30dc5 100644
--- a/man3/inet.3
+++ b/man3/inet.3
@@ -71,7 +71,12 @@ Feature Test Macro Requirements for glibc (see
.sp
.BR inet_aton (),
.BR inet_ntoa ():
-_BSD_SOURCE || _SVID_SOURCE
+.nf
+ Since glibc 2.19:
+ _DEFAULT_SOURCE
+ In glibc up to and including 2.19:
+ _BSD_SOURCE || _BSD_SOURCE
+.fi
.SH DESCRIPTION
.BR inet_aton ()
converts the Internet host address \fIcp\fP from the
diff --git a/man3/makedev.3 b/man3/makedev.3
index 68efac04c5..1df0f1bf50 100644
--- a/man3/makedev.3
+++ b/man3/makedev.3
@@ -28,7 +28,6 @@
makedev, major, minor \- manage a device number
.SH SYNOPSIS
.nf
-.BR "#define _BSD_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sys/types.h>
.BI "dev_t makedev(unsigned int " maj ", unsigned int " min );
@@ -36,6 +35,16 @@ makedev, major, minor \- manage a device number
.BI "unsigned int major(dev_t " dev );
.BI "unsigned int minor(dev_t " dev );
.fi
+.sp
+.BR makedev (),
+.BR major (),
+.BR minor ():
+.nf
+ Since glibc 2.19:
+ _DEFAULT_SOURCE
+ In glibc up to and including 2.19:
+ _BSD_SOURCE
+.fi
.SH DESCRIPTION
A device ID consists of two parts:
a major ID, identifying the class of the device,
diff --git a/man3/rexec.3 b/man3/rexec.3
index 8462fdd30d..f0e9c3736c 100644
--- a/man3/rexec.3
+++ b/man3/rexec.3
@@ -43,7 +43,6 @@
rexec, rexec_af \- return stream to a remote command
.SH SYNOPSIS
.nf
-.BR "#define _BSD_SOURCE" " /* See feature_test_macros(7) */"
.B #include <netdb.h>
.sp
.BI "int rexec(char **" ahost ", int " inport ", const char *" user ", "
@@ -53,6 +52,15 @@ rexec, rexec_af \- return stream to a remote command
.BI " const char *" passwd ", const char *" cmd ", int *" fd2p ,
.BI " sa_family_t " af );
.fi
+.sp
+.BR rexec (),
+.BR rexec_af ():
+.nf
+ Since glibc 2.19:
+ _DEFAULT_SOURCE
+ In glibc up to and including 2.19:
+ _BSD_SOURCE
+.fi
.SH DESCRIPTION
This interface is obsoleted by
.BR rcmd (3).