diff options
author | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2018-12-18 23:13:55 +0100 |
---|---|---|
committer | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2018-12-18 23:13:55 +0100 |
commit | c4c2836ada90259e4c5632f962dfcda54ac448fa (patch) | |
tree | e1495813b347d74ac827d4844664f02d3833c657 /include/time.h | |
parent | 7755e504117cc014416a60f8498f3f15b14d6482 (diff) | |
download | glibc-c4c2836ada90259e4c5632f962dfcda54ac448fa.zip glibc-c4c2836ada90259e4c5632f962dfcda54ac448fa.tar.gz glibc-c4c2836ada90259e4c5632f962dfcda54ac448fa.tar.bz2 |
Y2038: add function __ctime64_r
Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
* include/time.h
(__ctime64_r): Add.
* time/ctime_r.c
(__ctime64_r): Add.
[__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 34d9de1..a10a59a 100644 --- a/include/time.h +++ b/include/time.h @@ -65,6 +65,14 @@ libc_hidden_proto (__ctime64); #endif #if __TIMESIZE == 64 +# define __ctime64_r ctime_r +#else +extern char *__ctime64_r (const __time64_t *__restrict __timer, + char *__restrict __buf) __THROW; +libc_hidden_proto (__ctime64_r); +#endif + +#if __TIMESIZE == 64 # define __localtime64 localtime #else extern struct tm *__localtime64 (const __time64_t *__timer); |