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

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

 



On 04/29/2015 12:09 PM, Zeng Linggang wrote:
> The marking matches glibc marking.
> markings of functions in glibc are:
> - lfind:   MT-Safe
> - lsearch: MT-Safe


Thanks, Zeng. Applied.

Cheers,

Michael




> Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>
> ---
>  man3/lsearch.3 | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/man3/lsearch.3 b/man3/lsearch.3
> index 3b4637d..f192960 100644
> --- a/man3/lsearch.3
> +++ b/man3/lsearch.3
> @@ -77,6 +77,20 @@ NULL if no match is found.
>  returns a pointer to
>  a matching member of the array, or to the newly added member if no
>  match is found.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw18 lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR lfind (),
> +.BR lsearch ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
>  .SH CONFORMING TO
>  SVr4, 4.3BSD, POSIX.1-2001.
>  Present in libc since libc-4.6.27.
> 


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