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
/
byteorder.3
diff --git
a/original/man3/byteorder.3
b/original/man3/byteorder.3
index
1705427
..
8cf7512
100644
(file)
--- a/
original/man3/byteorder.3
+++ b/
original/man3/byteorder.3
@@
-29,7
+29,7
@@
.\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@cwi.nl)
.\"
.\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@cwi.nl)
.\"
-.TH BYTEORDER 3 20
09-01-15
"GNU" "Linux Programmer's Manual"
+.TH BYTEORDER 3 20
14-04-08
"GNU" "Linux Programmer's Manual"
.SH NAME
htonl, htons, ntohl, ntohs \- convert values between host and network
byte order
.SH NAME
htonl, htons, ntohl, ntohs \- convert values between host and network
byte order
@@
-48,27
+48,40
@@
byte order
.SH DESCRIPTION
The
.BR htonl ()
.SH DESCRIPTION
The
.BR htonl ()
-function converts the unsigned integer \fIhostlong\fP
+function converts the unsigned integer
+.I hostlong
from host byte order to network byte order.
.PP
The
.BR htons ()
from host byte order to network byte order.
.PP
The
.BR htons ()
-function converts the unsigned short integer \fIhostshort\fP
+function converts the unsigned short integer
+.I hostshort
from host byte order to network byte order.
.PP
The
.BR ntohl ()
from host byte order to network byte order.
.PP
The
.BR ntohl ()
-function converts the unsigned integer \fInetlong\fP
+function converts the unsigned integer
+.I netlong
from network byte order to host byte order.
.PP
The
.BR ntohs ()
from network byte order to host byte order.
.PP
The
.BR ntohs ()
-function converts the unsigned short integer \fInetshort\fP
+function converts the unsigned short integer
+.I netshort
from network byte order to host byte order.
.PP
On the i386 the host byte order is Least Significant Byte first,
whereas the network byte order, as used on the Internet, is Most
Significant Byte first.
from network byte order to host byte order.
.PP
On the i386 the host byte order is Least Significant Byte first,
whereas the network byte order, as used on the Internet, is Most
Significant Byte first.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR htonl (),
+.BR htons (),
+.BR ntohl (),
+and
+.BR ntohs ()
+functions are thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH CONFORMING TO
POSIX.1-2001.
@@
-80,3
+93,12
@@
instead of
.BR endian (3),
.BR gethostbyname (3),
.BR getservent (3)
.BR endian (3),
.BR gethostbyname (3),
.BR getservent (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/.