Re: [PATCH] byteorder.3: ATTRIBUTES: Note functions that are thread-safe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Haitao.

Applied.

Cheers,

Michael


On 04/08/2014 03:05 AM, Peng Haitao wrote:
> The functions htonl(), htons(), ntohl() and ntohs() are thread
> safe.
> 
> Signed-off-by: Peng Haitao <penght@xxxxxxxxxxxxxx>
> ---
>  man3/byteorder.3 | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/man3/byteorder.3 b/man3/byteorder.3
> index 0781fd5..930755a 100644
> --- a/man3/byteorder.3
> +++ b/man3/byteorder.3
> @@ -29,7 +29,7 @@
>  .\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@xxxxxxxxxx)
>  .\" Modified Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@xxxxxx)
>  .\"
> -.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.
>  
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux