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

Message ID 20180418201819.15952-49-albert.aribaud@3adev.fr
State New, archived
Headers

Commit Message

Albert ARIBAUD April 18, 2018, 8:18 p.m. UTC
  ---
 time/sys/time.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
  

Patch

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.  */