diff options
author | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-01-04 20:45:20 +0000 |
---|---|---|
committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-01-04 20:45:20 +0000 |
commit | de1600012395bd6095f245bc6a29d4136a3db70c (patch) | |
tree | f1f35b03b64b847d463a3a09b3ba9412548dc52f /include/time.h | |
parent | 73a5bda36018cb31813d9c4348802d5eb638709a (diff) | |
download | src-test2-de1600012395bd6095f245bc6a29d4136a3db70c.tar.gz src-test2-de1600012395bd6095f245bc6a29d4136a3db70c.zip |
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.
Notes
Notes:
svn path=/head/; revision=42293
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/time.h b/include/time.h index 58409776ff18..a9baa50ff1fd 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)); |