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

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

 



Hello Zeng Linggang,

On 06/24/2015 11:28 AM, Zeng Linggang wrote:
> After research, We think
> * dlopen(),
> * dlerror(),
> * dlsym(),
> * dlclose(),
> * dladdr(),
> * dlvsym()
> are thread-safe. But, there are not
> markings of them in glibc document.

Thanks. I've applied this manually, since it happens that I am currently
working on splitting the dlopen(3) page into smaller pieces. So, it will
be a short while before your changes in this patch are released.

You might also want to check the thread safety of dlinfo(), dlmopen(),
and dladdr1(), since man pages for those functions will, I hope, soon
appear.

Cheers,

Michael


> Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>
> ---
>  man3/dlopen.3 | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/man3/dlopen.3 b/man3/dlopen.3
> index cb5dbf9..53d3f16 100644
> --- a/man3/dlopen.3
> +++ b/man3/dlopen.3
> @@ -396,6 +396,25 @@ provided by glibc since version 2.1,
>  does the same as
>  .BR dlsym ()
>  but takes a version string as an additional argument.
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw29 lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR dlopen (),
> +.BR dlerror (),
> +.BR dlsym (),
> +.br
> +.BR dlclose (),
> +.BR dladdr (),
> +.BR dlvsym ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
>  .SH CONFORMING TO
>  POSIX.1-2001 describes
>  .BR dlclose (),
> 


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