summaryrefslogtreecommitdiff
path: root/src/time/time_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-17 05:24:50 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-17 05:24:50 -0400
commit1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6 (patch)
treed8839fbfd8cb1fb5658394cad6a6a06688ab6a1b /src/time/time_impl.h
parentf1292e3d28309bbc81f61671164843cec4319bfa (diff)
downloadmusl-1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6.tar.gz
the big time handling overhaul
this commit has two major user-visible parts: zoneinfo-format time zones are now supported, and overflow handling is intended to be complete in the sense that all functions return a correct result if and only if the result fits in the destination type, and otherwise return an error. also, some noticable bugs in the way DST detection and normalization worked have been fixed, and performance may be better than before, but it has not been tested.
Diffstat (limited to 'src/time/time_impl.h')
-rw-r--r--src/time/time_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/time/time_impl.h b/src/time/time_impl.h
new file mode 100644
index 00000000..2e9a2c09
--- /dev/null
+++ b/src/time/time_impl.h
@@ -0,0 +1,9 @@
+#include <time.h>
+
+int __days_in_month(int, int);
+int __month_to_secs(int, int);
+long long __year_to_secs(long long, int *);
+long long __tm_to_secs(const struct tm *);
+int __secs_to_tm(long long, struct tm *);
+void __secs_to_zone(long long, int, int *, long *, long *, const char **);
+const unsigned char *__map_file(const char *, size_t *);