aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-11-20 23:57:23 +0100
committerAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-12-17 22:56:15 +0100
commit6e15f3e26bd180d0d5fd3bc923d5a8489aa698d1 (patch)
treea275aaceafc97f5f16c1621ceaa2f7a0df2aa4c0 /include
parent551e81d9e321ebe63465be2607fd251da38b4b0b (diff)
downloadglibc-6e15f3e26bd180d0d5fd3bc923d5a8489aa698d1.zip
glibc-6e15f3e26bd180d0d5fd3bc923d5a8489aa698d1.tar.gz
glibc-6e15f3e26bd180d0d5fd3bc923d5a8489aa698d1.tar.bz2
Y2038: add function __localtime64
Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu. * include/time.h (__localtime64): Add. * manual/maint.texi: Document Y2038 symbol handling. * time/localtime.c (__localtime64): Add. [__TIMERSIZE != 64] (__localtime): Turn into a wrapper.
Diffstat (limited to 'include')
-rw-r--r--include/time.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 37964f7..3bc303a 100644
--- a/include/time.h
+++ b/include/time.h
@@ -56,6 +56,14 @@ extern time_t __mktime_internal (struct tm *__tp,
struct tm *(*__func) (const time_t *,
struct tm *),
long int *__offset) attribute_hidden;
+
+#if __TIMESIZE == 64
+# define __localtime64 localtime
+#else
+extern struct tm *__localtime64 (const __time64_t *__timer);
+libc_hidden_proto (__localtime64)
+#endif
+
extern struct tm *__localtime_r (const time_t *__timer,
struct tm *__tp) attribute_hidden;