summary refs log tree commit diff
path: root/include/struct___timeb64.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-10-19 11:51:48 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-10-27 09:54:50 -0300
commit5d8aa97da2332a818579bbb24880f9d44715448a (patch)
tree649294cdab8924f0905bc9bdc6c03a24627582b9 /include/struct___timeb64.h
parent30a0b167d347dd80807d167ee85bf58264fb8b76 (diff)
downloadglibc-5d8aa97da2332a818579bbb24880f9d44715448a.tar.gz
glibc-5d8aa97da2332a818579bbb24880f9d44715448a.tar.xz
glibc-5d8aa97da2332a818579bbb24880f9d44715448a.zip
time: Add 64-bit time_t support for ftime
It basically calls the 64-bit __clock_gettime64 and adds the overflow
check.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include/struct___timeb64.h')
-rw-r--r--include/struct___timeb64.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/struct___timeb64.h b/include/struct___timeb64.h
new file mode 100644
index 0000000000..14704a9e30
--- /dev/null
+++ b/include/struct___timeb64.h
@@ -0,0 +1,16 @@
+#ifndef _STRUCT_TIMEB64_H
+#define _STRUCT_TIMEB64_H
+
+#if __TIMESIZE == 64
+# define __timeb64 timeb
+#else
+struct __timeb64
+{
+  __time64_t time;
+  unsigned short int millitm;
+  short int timezone;
+  short int dstflag;
+};
+#endif
+
+#endif /* _STRUCT_TIMEB64_H  */