aboutsummaryrefslogtreecommitdiffstats
path: root/man3/endian.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/endian.3')
-rw-r--r--man3/endian.325
1 files changed, 24 insertions, 1 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,