Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.ad l
.PP
.BR asctime_r (),
.BR ctime_r (),
.BR gmtime_r (),
.BR localtime_r ():
-.RS
-_POSIX_C_SOURCE
- || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
-.RE
-.ad
+.nf
+ _POSIX_C_SOURCE
+ || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
+.fi
.SH DESCRIPTION
The
.BR ctime (),
On error,
.BR mktime ()
returns the value
-.IR "(time_t)\ -1" .
+.IR "(time_t)\ \-1" .
The remaining functions return NULL on error.
On error,
.I errno
-is set to indicate the cause of the error.
+is set to indicate the error.
.SH ERRORS
.TP
.B EOVERFLOW
For an explanation of the terms used in this section, see
.BR attributes (7).
.ad l
+.nh
.TS
allbox;
-lbw14 lb lbw31
+lb lb lbx
l l l.
Interface Attribute Value
T{
.BR asctime ()
-T} Thread safety MT-Unsafe race:asctime locale
+T} Thread safety T{
+MT-Unsafe race:asctime locale
+T}
T{
.BR asctime_r ()
-T} Thread safety MT-Safe locale
+T} Thread safety T{
+MT-Safe locale
+T}
T{
.BR ctime ()
T} Thread safety T{
MT-Unsafe race:tmbuf
-.br
race:asctime env locale
T}
T{
.BR gmtime_r (),
.BR localtime_r (),
.BR mktime ()
-T} Thread safety MT-Safe env locale
+T} Thread safety T{
+MT-Safe env locale
+T}
T{
.BR gmtime (),
.BR localtime ()
-T} Thread safety MT-Unsafe race:tmbuf env locale
+T} Thread safety T{
+MT-Unsafe race:tmbuf env locale
+T}
.TE
+.hy
.ad
+.sp 1
.SH CONFORMING TO
POSIX.1-2001.
C89 and C99 specify