On 05/15/13 04:26, Peng Haitao wrote: > The function fcloseall() is not thread safe. Applied to my local branch for this work. Thank you, Peng. Cheers, Michael > Signed-off-by: Peng Haitao <penght@xxxxxxxxxxxxxx> > --- > man3/fcloseall.3 | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/man3/fcloseall.3 b/man3/fcloseall.3 > index 001bd99..6c41ceb 100644 > --- a/man3/fcloseall.3 > +++ b/man3/fcloseall.3 > @@ -52,6 +52,11 @@ This function returns 0 if all files were successfully closed; > on error, > .B EOF > is returned. > +.SH ATTRIBUTES > +.SS Multithreading (see pthreads(7)) > +The > +.BR fcloseall () > +does not lock the streams, so it is not thread-safe. > .SH CONFORMING TO > This function is a GNU extension. > .SH SEE ALSO > -- 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