[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-cvs
Subject:    [glibc] time: Add a __itimerval64 struct
From:       Alistair Francis via Glibc-cvs <glibc-cvs () sourceware ! org>
Date:       2020-03-27 22:23:26
Message-ID: 20200327222326.65271385E011 () sourceware ! org
[Download RAW message or body]

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=933dc0e5708beae17ce382287b9901ee960f42da

commit 933dc0e5708beae17ce382287b9901ee960f42da
Author: Alistair Francis <alistair.francis@wdc.com>
Date:   Sat Jan 18 15:17:03 2020 -0800

    time: Add a __itimerval64 struct
    
    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>

Diff:
---
 include/time.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/time.h b/include/time.h
index 96bd648c82..2523e0ff0d 100644
--- a/include/time.h
+++ b/include/time.h
@@ -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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic