aboutsummaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-05-11 16:30:30 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-05-11 16:30:30 +0200
commitfc79706a3233b02909b1a75b1e43e40915eb5a04 (patch)
treeec929508205466117b6e68787aa38752c85a021f /include/time.h
parent89aacb513eb77549a29df2638913a0f8178cf3f5 (diff)
downloadglibc-fc79706a3233b02909b1a75b1e43e40915eb5a04.tar
glibc-fc79706a3233b02909b1a75b1e43e40915eb5a04.tar.gz
glibc-fc79706a3233b02909b1a75b1e43e40915eb5a04.tar.bz2
glibc-fc79706a3233b02909b1a75b1e43e40915eb5a04.zip
time: Use 64-bit time values for time zone parsing
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index aab26d7768..23d2580528 100644
--- a/include/time.h
+++ b/include/time.h
@@ -26,6 +26,10 @@ extern __typeof (clock_getcpuclockid) __clock_getcpuclockid;
/* Now define the internal interfaces. */
struct tm;
+/* time_t variant for representing time zone data, independent of
+ time_t. */
+typedef __int64_t internal_time_t;
+
/* Defined in mktime.c. */
extern const unsigned short int __mon_yday[2][13] attribute_hidden;
@@ -39,7 +43,7 @@ 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 (internal_time_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,