[v2,3/6] time: Add a __itimerval64 struct
diff mbox series

Message ID 20200210174325.6566-4-alistair.francis@wdc.com
State New
Headers show
Series
  • Always use long time_t for certain syscalls
Related show

Commit Message

Alistair Francis Feb. 10, 2020, 5:43 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 mbox series

diff --git a/include/time.h b/include/time.h
index f22abc13f4..684dabba9c 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