[PATCH] getmntent.3: ATTRIBUTES: Note functions that isn't thread-safe

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

 



The markings match glibc markings.
markings of functions in glibc are:
- setmntent:   MT-Safe
- endmntent:   MT-Safe
- hasmntopt:   MT-Safe
- getmntent:   MT-Unsafe race:mntentbuf locale
- addmntent:   MT-Safe race:stream locale
- getmntent_r: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>
---
 man3/getmntent.3 | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/man3/getmntent.3 b/man3/getmntent.3
index 085c632..130ec82 100644
--- a/man3/getmntent.3
+++ b/man3/getmntent.3
@@ -199,6 +199,30 @@ a match is found and NULL otherwise.
 /etc/fstab          filesystem description file
 /etc/mtab           mounted filesystem description file
 .fi
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw13 lb lbw31
+l l l.
+Interface	Attribute	Value
+T{
+.BR setmntent (),
+.BR endmntent (),
+.BR hasmntopt ()
+T}	Thread safety	MT-Safe
+T{
+.BR getmntent ()
+T}	Thread safety	MT-Unsafe race:mntentbuf locale
+T{
+.BR addmntent ()
+T}	Thread safety	MT-Safe race:stream locale
+T{
+.BR getmntent_r ()
+T}	Thread safety	MT-Safe locale
+.TE
+
 .SH CONFORMING TO
 The nonreentrant functions are from SunOS 4.1.3.
 A routine
-- 
1.9.3

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