diff options
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/include/time.h b/include/time.h index 7eda265a66..894dcdb0b3 100644 --- a/include/time.h +++ b/include/time.h @@ -9,6 +9,8 @@ extern __typeof (strftime_l) __strftime_l; libc_hidden_proto (__strftime_l) extern __typeof (strptime_l) __strptime_l; +extern struct tm *__localtime64 (const __time64_t *__timer); + libc_hidden_proto (time) libc_hidden_proto (asctime) libc_hidden_proto (mktime) @@ -17,6 +19,8 @@ libc_hidden_proto (localtime) libc_hidden_proto (strftime) libc_hidden_proto (strptime) +libc_hidden_proto (__localtime64) + extern __typeof (clock_getres) __clock_getres; extern __typeof (clock_gettime) __clock_gettime; libc_hidden_proto (__clock_gettime) @@ -40,14 +44,14 @@ extern int __use_tzfile attribute_hidden; extern void __tzfile_read (const char *file, size_t extra, char **extrap) attribute_hidden; -extern void __tzfile_compute (time_t timer, int use_localtime, +extern void __tzfile_compute (__time64_t timer, int use_localtime, long int *leap_correct, int *leap_hit, struct tm *tp) attribute_hidden; extern void __tzfile_default (const char *std, const char *dst, long int stdoff, long int dstoff) attribute_hidden; extern void __tzset_parse_tz (const char *tz) attribute_hidden; -extern void __tz_compute (time_t timer, struct tm *tm, int use_localtime) +extern void __tz_compute (__time64_t timer, struct tm *tm, int use_localtime) __THROW attribute_hidden; /* Subroutine of `mktime'. Return the `time_t' representation of TP and @@ -60,15 +64,21 @@ extern time_t __mktime_internal (struct tm *__tp, extern struct tm *__localtime_r (const time_t *__timer, struct tm *__tp) attribute_hidden; -extern struct tm *__gmtime_r (const time_t *__restrict __timer, +extern struct tm *__localtime64_r (const __time64_t *__timer, + struct tm *__tp) attribute_hidden; + +extern struct tm *__gmtime_r (const __time_t *__restrict __timer, struct tm *__restrict __tp); libc_hidden_proto (__gmtime_r) +extern struct tm *__gmtime64_r (const __time64_t *__restrict __timer, + struct tm *__restrict __tp); + /* Compute the `struct tm' representation of *T, offset OFFSET seconds east of UTC, and store year, yday, mon, mday, wday, hour, min, sec into *TP. Return nonzero if successful. */ -extern int __offtime (const time_t *__timer, +extern int __offtime (const __time_t *__timer, long int __offset, struct tm *__tp) attribute_hidden; @@ -76,9 +86,21 @@ extern char *__asctime_r (const struct tm *__tp, char *__buf) attribute_hidden; extern void __tzset (void) attribute_hidden; +extern int __offtime64 (const __time64_t *__timer, + long int __offset, + struct tm *__tp) + attribute_hidden; + +extern char *__asctime_r (const struct tm *__tp, char *__buf); +extern void __tzset (void); + /* Prototype for the internal function to get information based on TZ. */ -extern struct tm *__tz_convert (const time_t *timer, int use_localtime, - struct tm *tp) attribute_hidden; +extern struct tm *__tz_convert (const __time_t *timer, int use_localtime, + struct tm *tp) attribute_hidden; + +extern struct tm *__tz_convert64 (const __time64_t *timer, + int use_localtime, struct tm *tp) + attribute_hidden; extern int __nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); |