diff options
author | Lukasz Majewski <lukma@denx.de> | 2020-01-25 22:33:41 +0100 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-02-07 17:55:07 +0100 |
commit | 3fced064f23562ec24f8312ffbc14950993969e6 (patch) | |
tree | bf8a8e36dfd1ad3786a8a417dfa3b3bace626604 /posix | |
parent | 449db0fa3ef9d17951d94d7504db13b1891fa964 (diff) | |
download | glibc-3fced064f23562ec24f8312ffbc14950993969e6.zip glibc-3fced064f23562ec24f8312ffbc14950993969e6.tar.gz glibc-3fced064f23562ec24f8312ffbc14950993969e6.tar.bz2 |
y2038: Define __suseconds64_t type to be used with struct __timeval64
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>
Diffstat (limited to 'posix')
-rw-r--r-- | posix/bits/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/bits/types.h b/posix/bits/types.h index adba926..a26cd38 100644 --- a/posix/bits/types.h +++ b/posix/bits/types.h @@ -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. */ |