diff options
author | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2018-12-18 23:11:40 +0100 |
---|---|---|
committer | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2018-12-18 23:11:40 +0100 |
commit | 131db8b0c8eeb4185aaf641e9ab119717b0a860e (patch) | |
tree | d434b327af0f2999c71bc6e1c15e7ec45d36d2a8 /include | |
parent | 64c2277d2eb14b6b485a16b799d900505e2cbe71 (diff) | |
download | glibc-131db8b0c8eeb4185aaf641e9ab119717b0a860e.tar.gz glibc-131db8b0c8eeb4185aaf641e9ab119717b0a860e.tar.xz glibc-131db8b0c8eeb4185aaf641e9ab119717b0a860e.zip |
Y2038: add function __gmtime64
Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu. * include/time.h (__gmtime64): Add. * time/gmtime.c (__gmtime64): Add. [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
Diffstat (limited to 'include')
-rw-r--r-- | include/time.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 876b8a2b5f..c5881acf9f 100644 --- a/include/time.h +++ b/include/time.h @@ -79,6 +79,13 @@ extern struct tm *__gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp); libc_hidden_proto (__gmtime_r) +#if __TIMESIZE == 64 +# define __gmtime64 gmtime +#else +extern struct tm *__gmtime64 (const __time64_t *__timer); +libc_hidden_proto (__gmtime64) +#endif + /* 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. |