mirror of https://github.com/mkerrisk/man-pages
byteorder.3: ATTRIBUTES: Note functions that are thread-safe
The functions htonl(), htons(), ntohl() and ntohs() are thread safe. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a03c016c7d
commit
7998494a13
|
@ -29,7 +29,7 @@
|
||||||
.\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@cs.unc.edu)
|
.\" 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 Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@cwi.nl)
|
||||||
.\"
|
.\"
|
||||||
.TH BYTEORDER 3 2009-01-15 "GNU" "Linux Programmer's Manual"
|
.TH BYTEORDER 3 2014-04-08 "GNU" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
htonl, htons, ntohl, ntohs \- convert values between host and network
|
htonl, htons, ntohl, ntohs \- convert values between host and network
|
||||||
byte order
|
byte order
|
||||||
|
@ -73,6 +73,15 @@ from network byte order to host byte order.
|
||||||
On the i386 the host byte order is Least Significant Byte first,
|
On the i386 the host byte order is Least Significant Byte first,
|
||||||
whereas the network byte order, as used on the Internet, is Most
|
whereas the network byte order, as used on the Internet, is Most
|
||||||
Significant Byte first.
|
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
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001.
|
POSIX.1-2001.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue