Re: [PATCH] unlocked_stdio.3: ATTRIBUTES: Note functions thoes aren't thread-safe

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

 



On 03/25/2015 08:14 AM, Zeng Linggang wrote:
> The markings match glibc markings.


Hello Zeng Linggang,

Thanks. Patch applied.

Cheers,

Michael



> Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>
> Signed-off-by: Ma Shimiao <mashimiao.fnst@xxxxxxxxxxxxxx>
> ---
>  man3/unlocked_stdio.3 | 41 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
> 
> diff --git a/man3/unlocked_stdio.3 b/man3/unlocked_stdio.3
> index d5aada7..24bd179 100644
> --- a/man3/unlocked_stdio.3
> +++ b/man3/unlocked_stdio.3
> @@ -110,6 +110,47 @@ without the "_unlocked" suffix, except that they do not use locking
>  of locks set by others) and hence are thread-unsafe.
>  See
>  .BR flockfile (3).
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw20 lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR getc_unlocked (),
> +.BR putc_unlocked (),
> +.BR clearerr_unlocked (),
> +.BR fflush_unlocked (),
> +.BR fgetc_unlocked (),
> +.BR fputc_unlocked (),
> +.BR fread_unlocked (),
> +.BR fwrite_unlocked (),
> +.BR fgets_unlocked (),
> +.BR fputs_unlocked (),
> +.BR getwc_unlocked (),
> +.BR fgetwc_unlocked (),
> +.BR fputwc_unlocked (),
> +.BR putwc_unlocked (),
> +.BR fgetws_unlocked (),
> +.BR fputws_unlocked ()
> +T}	Thread safety	MT-Safe race:stream
> +T{
> +.BR getchar_unlocked (),
> +.BR getwchar_unlocked ()
> +T}	Thread safety	MT-Unsafe race:stdin
> +T{
> +.BR putchar_unlocked (),
> +.BR putwchar_unlocked ()
> +T}	Thread safety	MT-Unsafe race:stdout
> +T{
> +.BR feof_unlocked (),
> +.BR ferror_unlocked (),
> +.BR fileno_unlocked ()
> +T}	Thread safety	MT-Safe
> +.TE
> +
>  .SH CONFORMING TO
>  The four functions
>  .BR getc_unlocked (),
> 


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