summaryrefslogtreecommitdiffstats
path: root/include/time.h
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1999-01-04 20:45:20 +0000
committerdt <dt@FreeBSD.org>1999-01-04 20:45:20 +0000
commitc09e434e50a2e69664cce10032e5455105da675c (patch)
tree1583febd14399ef2ef8e7a3a0bbff06da83f4b41 /include/time.h
parent7593ef4cbdd685a9195c1ebf53977dfabc35fa70 (diff)
downloadFreeBSD-src-c09e434e50a2e69664cce10032e5455105da675c.zip
FreeBSD-src-c09e434e50a2e69664cce10032e5455105da675c.tar.gz
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/time.h b/include/time.h
index 5840977..a9baa50 100644
--- a/include/time.h
+++ b/include/time.h
@@ -131,18 +131,15 @@ time_t mktime __P((struct tm *));
size_t strftime __P((char *, size_t, const char *, const struct tm *));
time_t time __P((time_t *));
-#ifdef _THREAD_SAFE
-char *asctime_r __P((const struct tm *, char *));
-char *ctime_r __P((const time_t *, char *));
-struct tm *gmtime_r __P((const time_t *, struct tm *));
-struct tm *localtime_r __P((const time_t *, struct tm *));
-#endif
-
#ifndef _ANSI_SOURCE
void tzset __P((void));
#endif /* not ANSI */
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
+char *asctime_r __P((const struct tm *, char *));
+char *ctime_r __P((const time_t *, char *));
+struct tm *gmtime_r __P((const time_t *, struct tm *));
+struct tm *localtime_r __P((const time_t *, struct tm *));
char *strptime __P((const char *, const char *, struct tm *));
char *timezone __P((int, int));
void tzsetwall __P((void));
OpenPOWER on IntegriCloud