]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
time: Add a __itimerval64 struct
authorAlistair Francis <alistair.francis@wdc.com>
Sat, 18 Jan 2020 23:17:03 +0000 (15:17 -0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 27 Mar 2020 18:23:15 +0000 (11:23 -0700)
Add a __itimerval64 which always uses a 64-bit time_t.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/time.h

index 96bd648c82aad2c0bf0e75d63d743f362f3d9ea8..2523e0ff0d5032c670c6dd475acc37819c80b4c1 100644 (file)
@@ -110,6 +110,7 @@ struct __timeval64
 
 #if __TIMESIZE == 64
 # define __utimbuf64 utimbuf
+# define __itimerval64 itimerval
 #else
 /* The glibc Y2038-proof struct __utimbuf64 structure for file's access
    and modification time values.  */
@@ -118,6 +119,12 @@ struct __utimbuf64
   __time64_t actime;           /* Access time.  */
   __time64_t modtime;          /* Modification time.  */
 };
+/* The glibc's internal representation of the struct itimerval.  */
+struct __itimerval64
+{
+  struct __timeval64 it_interval;
+  struct __timeval64 it_value;
+};
 #endif
 
 #if __TIMESIZE == 64