[PATCH 3/6] time: Add a __itimerval64 struct
Alistair Francis
alistair.francis@wdc.com
Mon Feb 3 18:38:00 GMT 2020
Add a __itimerval64 which always uses a 64-bit time_t.
---
include/time.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/time.h b/include/time.h
index c2c05bb671..898ff0fb2d 100644
--- a/include/time.h
+++ b/include/time.h
@@ -107,6 +107,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
--
2.25.0
More information about the Libc-alpha
mailing list