]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ctime.3: ATTRIBUTES: Note functions that aren't thread-safe
authorZeng Linggang <zenglg.jy@cn.fujitsu.com>
Wed, 8 Apr 2015 02:56:13 +0000 (10:56 +0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 11 Apr 2015 06:46:27 +0000 (08:46 +0200)
The markings match glibc markings.

asctime:     MT-Unsafe race:asctime locale

asctime_r:   MT-Safe locale

ctime:       MT-Unsafe race:tmbuf race:asctime env locale

ctime_r:     MT-Safe env locale
gmtime_r:    MT-Safe env locale
localtime_r: MT-Safe env locale
mktime:      MT-Safe env locale

gmtime:      MT-Unsafe race:tmbuf env locale
localtime:   MT-Unsafe race:tmbuf env locale

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

index b127716209c5887bbfaa548a9f8f59ed7908e13c..c5959d1fe06893348573ef05152eb0264f03cd31 100644 (file)
@@ -279,6 +279,39 @@ Each of these functions returns the value described, or NULL
 (\-1 in case of
 .BR mktime ())
 in case an error was detected.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw14 lb lbw31
+l l l.
+Interface      Attribute       Value
+T{
+.BR asctime ()
+T}     Thread safety   MT-Unsafe race:asctime locale
+T{
+.BR asctime_r ()
+T}     Thread safety   MT-Safe locale
+T{
+.BR ctime ()
+T}     Thread safety   T{
+MT-Unsafe race:tmbuf
+.br
+race:asctime env locale
+T}
+T{
+.BR ctime_r (),
+.BR gmtime_r (),
+.BR localtime_r (),
+.BR mktime ()
+T}     Thread safety   MT-Safe env locale
+T{
+.BR gmtime (),
+.BR localtime ()
+T}     Thread safety   MT-Unsafe race:tmbuf env locale
+.TE
+
 .SH CONFORMING TO
 POSIX.1-2001.
 C89 and C99 specify