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:
Peng Haitao 2014-04-08 09:05:39 +08:00 committed by Michael Kerrisk
parent a03c016c7d
commit 7998494a13
1 changed files with 10 additions and 1 deletions

View File

@ -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)
.\"
.TH BYTEORDER 3 2009-01-15 "GNU" "Linux Programmer's Manual"
.TH BYTEORDER 3 2014-04-08 "GNU" "Linux Programmer's Manual"
.SH NAME
htonl, htons, ntohl, ntohs \- convert values between host and network
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,
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.