aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/endian.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-07-17 22:43:18 +0200
committerAlejandro Colomar <alx@kernel.org>2025-03-30 12:31:37 +0200
commita82917ada0509758ac6d717402858536af3a032d (patch)
treece8bc810a6c9f2f0ef5c7641392613d6b8a2ed0e /man/man3/endian.3
parentc47826785d91e9cd8c2957d789e50a50e36833e0 (diff)
downloadman-pages-a82917ada0509758ac6d717402858536af3a032d.tar.gz
man/: srcfix (\fX => \f[X])
While doing this global change, fix other minor issues found nearby. Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/endian.3')
-rw-r--r--man/man3/endian.318
1 files changed, 13 insertions, 5 deletions
diff --git a/man/man3/endian.3 b/man/man3/endian.3
index b5a7fe2e40..f20ad4c906 100644
--- a/man/man3/endian.3
+++ b/man/man3/endian.3
@@ -68,16 +68,24 @@ The number,
in the name of each function indicates the size of
integer handled by the function, either 16, 32, or 64 bits.
.P
-The functions with names of the form "htobe\fInn\fP" convert
+The functions with names of the form
+.RI \[dq]htobe nn \[dq]
+convert
from host byte order to big-endian order.
.P
-The functions with names of the form "htole\fInn\fP" convert
+The functions with names of the form
+.RI \[dq]htole nn \[dq]
+convert
from host byte order to little-endian order.
.P
-The functions with names of the form "be\fInn\fPtoh" convert
+The functions with names of the form
+.RI \[dq]be nn toh\[dq]
+convert
from big-endian order to host byte order.
.P
-The functions with names of the form "le\fInn\fPtoh" convert
+The functions with names of the form
+.RI \[dq]le nn toh\[dq]
+convert
from little-endian order to host byte order.
.SH VERSIONS
Similar functions are present on the BSDs,
@@ -123,7 +131,7 @@ we see the following:
.P
.in +4n
.EX
-$ \fB./a.out\fP
+.RB $ " ./a.out" ;
x.u32 = 0x44332211
htole32(x.u32) = 0x44332211
htobe32(x.u32) = 0x11223344