]> sourceware.org Git - glibc.git/commitdiff
y2038: Define __suseconds64_t type to be used with struct __timeval64
authorLukasz Majewski <lukma@denx.de>
Sat, 25 Jan 2020 21:33:41 +0000 (22:33 +0100)
committerLukasz Majewski <lukma@denx.de>
Fri, 7 Feb 2020 16:55:07 +0000 (17:55 +0100)
The __suseconds64_t type is supposed to be the 64 bit type across all
architectures.

It would be mostly used internally in the glibc - however, when passed to
Linux kernel (very unlikely), if necessary, it shall be converted to 32
bit type (i.e. __suseconds_t)

Build tests:
./src/scripts/build-many-glibcs.py glibcs

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
bits/typesizes.h
posix/bits/types.h
sysdeps/mach/hurd/bits/typesizes.h
sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
sysdeps/unix/sysv/linux/generic/bits/typesizes.h
sysdeps/unix/sysv/linux/s390/bits/typesizes.h
sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
sysdeps/unix/sysv/linux/x86/bits/typesizes.h

index 014c9aab2136c03fc87213217eb523d5bb825601..599408973e12d3f1bc36850bb2262c8744a59ac8 100644 (file)
@@ -50,6 +50,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __SLONGWORD_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index adba926b45470fdc96ee922047213f1c8b210eeb..a26cd383e4f4619afe054edc22b8581e4455dfe6 100644 (file)
@@ -160,6 +160,7 @@ __STD_TYPE __ID_T_TYPE __id_t;              /* General type for IDs.  */
 __STD_TYPE __TIME_T_TYPE __time_t;     /* Seconds since the Epoch.  */
 __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds.  */
 __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds.  */
+__STD_TYPE __SUSECONDS64_T_TYPE __suseconds64_t;
 
 __STD_TYPE __DADDR_T_TYPE __daddr_t;   /* The type of a disk address.  */
 __STD_TYPE __KEY_T_TYPE __key_t;       /* Type of an IPC key.  */
index b429379d7d32e4939af8ea3a5c12979fda9108ea..10f3ac231affc993170c301a479b455a1d1c8827 100644 (file)
@@ -50,6 +50,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __SLONGWORD_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index 30356ba6d61d6767c715c503d0b87158224ffd97..28ee3e5920df92c9969a02c6dd00dd7e5b245ef6 100644 (file)
@@ -49,6 +49,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __S64_TYPE
+#define __SUSECONDS64_T_TYPE   __S64_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index a916dea0473429f7dc35cb45864a07f3e62ed15c..7c963e523e17d5cf9880028ba1773382eeba2bda 100644 (file)
@@ -51,6 +51,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __SLONGWORD_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index 45f70184eaf342641e022f376c5a1bd48deff699..e775e460bbd62c45449289b9f18ffeae9994ff08 100644 (file)
@@ -50,6 +50,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __SLONGWORD_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index 1f3bbc800281a27409301c3912c0c28ce46d4775..ac48c23e3747d7f437a6604cb526ede8af605e9b 100644 (file)
@@ -50,6 +50,7 @@
 #define __TIME_T_TYPE          __SLONGWORD_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __S32_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
index d08414559718ff90c55eab4525b25a89dc7d6ecc..87c50a4f326bd2e6d6ae69447444a1359cde9443 100644 (file)
@@ -64,6 +64,7 @@
 #define __TIME_T_TYPE          __SYSCALL_SLONG_TYPE
 #define __USECONDS_T_TYPE      __U32_TYPE
 #define __SUSECONDS_T_TYPE     __SYSCALL_SLONG_TYPE
+#define __SUSECONDS64_T_TYPE   __SQUAD_TYPE
 #define __DADDR_T_TYPE         __S32_TYPE
 #define __KEY_T_TYPE           __S32_TYPE
 #define __CLOCKID_T_TYPE       __S32_TYPE
This page took 0.061334 seconds and 5 git commands to generate.