summaryrefslogtreecommitdiffstats
path: root/include/time.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-06-27 20:18:45 +0000
committerwollman <wollman@FreeBSD.org>2002-06-27 20:18:45 +0000
commit70c2bebb2731d25bb7b981f6274d4c0bada74f81 (patch)
tree28193f20451dd0a0c26f5f98c280356817ddf639 /include/time.h
parent0825fa8a7f009d270db69d92ec0e8bb494bef2ce (diff)
downloadFreeBSD-src-70c2bebb2731d25bb7b981f6274d4c0bada74f81.zip
FreeBSD-src-70c2bebb2731d25bb7b981f6274d4c0bada74f81.tar.gz
The thread-safe time functions appear to have been introduced as of
ISO 9945-1: 1996 (according to the change bars therein), which corresponds to 1003.1c-1995. Give them appropriate visibility protection.
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/time.h b/include/time.h
index 69610bc..dd57670 100644
--- a/include/time.h
+++ b/include/time.h
@@ -126,12 +126,6 @@ time_t time(time_t *);
#if __POSIX_VISIBLE
void tzset(void);
-
-/* XXX - figure out which standard introduced these */
-char *asctime_r(const struct tm *, char *);
-char *ctime_r(const time_t *, char *);
-struct tm *gmtime_r(const time_t *, struct tm *);
-struct tm *localtime_r(const time_t *, struct tm *);
#endif
#if __POSIX_VISIBLE >= 199309
@@ -141,6 +135,13 @@ int clock_settime(clockid_t, const struct timespec *);
int nanosleep(const struct timespec *, struct timespec *);
#endif /* __POSIX_VISIBLE >= 199309 */
+#if __POSIX_VISIBLE >= 199506
+char *asctime_r(const struct tm *, char *);
+char *ctime_r(const time_t *, char *);
+struct tm *gmtime_r(const time_t *, struct tm *);
+struct tm *localtime_r(const time_t *, struct tm *);
+#endif
+
#if __XSI_VISIBLE
char *strptime(const char *, const char *, struct tm *);
#endif
OpenPOWER on IntegriCloud