aboutsummaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-01-18 15:17:03 -0800
committerAlistair Francis <alistair.francis@wdc.com>2020-03-27 11:23:15 -0700
commit933dc0e5708beae17ce382287b9901ee960f42da (patch)
tree0ea48b4d7f16de79de8ffabebb7102bbe9488024 /include/time.h
parentd1876749a8e51b3bd632561ed7dfcdbbfce59d33 (diff)
downloadglibc-933dc0e5708beae17ce382287b9901ee960f42da.tar
glibc-933dc0e5708beae17ce382287b9901ee960f42da.tar.gz
glibc-933dc0e5708beae17ce382287b9901ee960f42da.tar.bz2
glibc-933dc0e5708beae17ce382287b9901ee960f42da.zip
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>
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h7
1 files changed, 7 insertions, 0 deletions
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