[v3,3/8] time: Add a __itimerval64 struct

Message ID 20200214163134.31601-4-alistair.francis@wdc.com
State New, archived
Headers

Commit Message

Alistair Francis Feb. 14, 2020, 4:31 p.m. UTC
  Add a __itimerval64 which always uses a 64-bit time_t.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
---
 include/time.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
  

Patch

diff --git a/include/time.h b/include/time.h
index ddc0ded640..34dffaf95f 100644
--- a/include/time.h
+++ b/include/time.h
@@ -108,6 +108,17 @@  struct __timeval64
 };
 #endif
 
+#if __TIMESIZE == 64
+# define __itimerval64 itimerval
+#else
+/* The glibc's internal representation of the struct itimerval.  */
+struct __itimerval64
+{
+  struct __timeval64 it_interval;
+  struct __timeval64 it_value;
+};
+#endif
+
 #if __TIMESIZE == 64
 # define __ctime64 ctime
 #else