OSDN Git Service
(root)
/
linuxjm
/
LDP_man-pages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git]
/
original
/
man3
/
endian.3
diff --git
a/original/man3/endian.3
b/original/man3/endian.3
index
e654a5a
..
8ca4c8e
100644
(file)
--- a/
original/man3/endian.3
+++ b/
original/man3/endian.3
@@
-3,6
+3,7
@@
.\" a few pieces remain from an earlier version
.\" Copyright (C) 2008, Nanno Langstraat <nal@ii.nl>
.\"
.\" a few pieces remain from an earlier version
.\" Copyright (C) 2008, Nanno Langstraat <nal@ii.nl>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
@@
-22,6
+23,7
@@
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.TH ENDIAN 3 2010-09-10 "GNU" "Linux Programmer's Manual"
.SH NAME
.\"
.TH ENDIAN 3 2010-09-10 "GNU" "Linux Programmer's Manual"
.SH NAME
@@
-70,8
+72,8
@@
from big-endian order to host byte order.
The functions with names of the form "le\fInn\fPtoh" convert
from little-endian order to host byte order.
.SH VERSIONS
The functions with names of the form "le\fInn\fPtoh" convert
from little-endian order to host byte order.
.SH VERSIONS
-These function were added to glibc in version 2.9.
-.SH
"CONFORMING TO"
+These function
s
were added to glibc in version 2.9.
+.SH
CONFORMING TO
These functions are nonstandard.
Similar functions are present on the BSDs,
where the required header file is
These functions are nonstandard.
Similar functions are present on the BSDs,
where the required header file is
@@
-93,7
+95,7
@@
family of functions.
For example,
.BR be32toh ()
is identical to
For example,
.BR be32toh ()
is identical to
-.BR ntohl ()
.
+.BR ntohl ().
The advantage of the
.BR byteorder (3)
The advantage of the
.BR byteorder (3)
@@
-130,8
+132,8
@@
int
main(int argc, char *argv[])
{
union {
main(int argc, char *argv[])
{
union {
- uint32_t u32;
- uint8_t arr[4];
+
uint32_t u32;
+
uint8_t arr[4];
} x;
x.arr[0] = 0x11; /* Lowest-address byte */
} x;
x.arr[0] = 0x11; /* Lowest-address byte */
@@
-146,5
+148,14
@@
main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}
.fi
exit(EXIT_SUCCESS);
}
.fi
-.SH
"SEE ALSO"
+.SH
SEE ALSO
.BR byteorder (3)
.BR byteorder (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.