[[PATCH RFC 2] 48/63] Y2038: add struct __itimerval64

Albert ARIBAUD (3ADEV) albert.aribaud@3adev.fr
Wed Apr 18 20:22:00 GMT 2018


---
 time/sys/time.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/time/sys/time.h b/time/sys/time.h
index 4166a5b10f..b82194898c 100644
--- a/time/sys/time.h
+++ b/time/sys/time.h
@@ -109,6 +109,16 @@ struct itimerval
     struct timeval it_value;
   };
 
+/* 64-BIT-TIME Type of the second argument to `getitimer' and
+   the second and third arguments `setitimer'.  */
+struct __itimerval64
+  {
+    /* Value to put into `it_value' when the timer expires.  */
+    struct __timeval64 it_interval;
+    /* Time to the next timer expiration.  */
+    struct __timeval64 it_value;
+  };
+
 #if defined __USE_GNU && !defined __cplusplus
 /* Use the nicer parameter type only in GNU mode and not for C++ since the
    strict C++ rules prevent the automatic promotion.  */
-- 
2.14.1



More information about the Libc-alpha mailing list