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

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

 



Hello Zeng Linggang,

On 05/13/2015 08:53 AM, Zeng Linggang wrote:
> After research, We think getifaddrs() and freeifaddrs() are not
> thread-safe. But, there is not markings of getifaddrs() and
> freeifaddrs() in glibc document.

In cases such as this, it's good to tell me that there is no marking
in the glibc manual, but in that case you can skip omit the next two lines:

> - getifaddrs:  MT-Safe
> - freeifaddrs: MT-Safe

Patch applied. Thanks!

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>
> ---
>  man3/getifaddrs.3 | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/man3/getifaddrs.3 b/man3/getifaddrs.3
> index ae6ac8e..0437b08 100644
> --- a/man3/getifaddrs.3
> +++ b/man3/getifaddrs.3
> @@ -167,6 +167,20 @@ the implementation supported only IPv4 addresses;
>  IPv6 support was added in glibc 2.3.3.
>  Support of address families other than IPv4 is available only
>  on kernels that support netlink.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw27 lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR getifaddrs (),
> +.BR freeifaddrs ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
>  .SH CONFORMING TO
>  Not in POSIX.1-2001.
>  This function first appeared in BSDi and is
> 


-- 
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