summaryrefslogtreecommitdiff
path: root/time/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'time/time.h')
-rw-r--r--time/time.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/time/time.h b/time/time.h
index 62e098ee46..6b955f1986 100644
--- a/time/time.h
+++ b/time/time.h
@@ -177,7 +177,7 @@ extern struct tm *__localtime_r __P ((__const time_t *__timer,
struct tm *__tp));
extern struct tm *localtime_r __P ((__const time_t *__timer,
struct tm *__tp));
-#endif
+#endif /* reentrant */
/* Compute the `struct tm' representation of *T,
offset OFFSET seconds east of UTC,
@@ -193,6 +193,18 @@ extern char *asctime __P ((__const struct tm *__tp));
/* Equivalent to `asctime(localtime(timer))'. */
extern char *ctime __P ((__const time_t *__timer));
+#ifdef __USE_REENTRANT
+/* Reentrant versions of the above functions. */
+
+/* Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n"
+ that is the representation of TP in this format. */
+extern char *__asctime_r __P ((__const struct tm *__tp, char *__buf));
+extern char *asctime_r __P ((__const struct tm *__tp, char *__buf));
+
+/* Equivalent to `asctime_r(localtime_r(timer, *TMP*), buf)'. */
+extern char *ctime_r __P ((__const time_t *__timer, char *__buf));
+#endif /* reentrant */
+
/* Defined in localtime.c. */
extern char *__tzname[2]; /* Current timezone names. */