[PATCH] fcloseall.3: ATTRIBUTES: Note function that is not thread-safe

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

 



The function fcloseall() is not thread safe.

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

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