On 05/20/2015 12:00 PM, Zeng Linggang wrote: > After research, We think pthread_cancel() is thread-safe. But, there > is not marking of pthread_cancel() in glibc document. > > Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx> Thanks, Zeng Linggang. Patch applied. Cheers, Michael > --- > man3/pthread_cancel.3 | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/man3/pthread_cancel.3 b/man3/pthread_cancel.3 > index 6317ede..1c8dd91 100644 > --- a/man3/pthread_cancel.3 > +++ b/man3/pthread_cancel.3 > @@ -122,6 +122,19 @@ No thread with the ID > could be found. > .\" .SH VERSIONS > .\" Available since glibc 2.0 > +.SH ATTRIBUTES > +For an explanation of the terms used in this section, see > +.BR attributes (7). > +.TS > +allbox; > +lb lb lb > +l l l. > +Interface Attribute Value > +T{ > +.BR pthread_cancel () > +T} Thread safety MT-Safe > +.TE > + > .SH CONFORMING TO > POSIX.1-2001. > .SH NOTES > -- 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