]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pthread_setname_np.3: ATTRIBUTES: Note functions that are thread-safe
authorZeng Linggang <zenglg.jy@cn.fujitsu.com>
Wed, 20 May 2015 10:00:10 +0000 (18:00 +0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 20 May 2015 14:13:27 +0000 (16:13 +0200)
After research, We think pthread_setname_np() and pthread_getname_np()
are thread-safe. But, there are not markings of pthread_setname_np()
and pthread_getname_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/pthread_setname_np.3

index b9c04879d6d56a3aef1d21abf5e400a3ea90c658..ef90fa186a0712987d63037c3e9377f3e678ed46 100644 (file)
@@ -99,6 +99,20 @@ then the call may fail with one of the errors described in
 .BR open (2).
 .SH VERSIONS
 These functions first appeared in glibc in version 2.12.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw21 lb lb
+l l l.
+Interface      Attribute       Value
+T{
+.BR pthread_setname_np (),
+.BR pthread_getname_np ()
+T}     Thread safety   MT-Safe
+.TE
+
 .SH CONFORMING TO
 These functions are nonstandard GNU extensions.
 .SH NOTES