diff options
author | 2020-04-21 19:08:33 +0200 | |
---|---|---|
committer | 2020-05-05 19:36:25 +0200 | |
commit | dbf8178fdc1cc1c884efd2f5b55703da5adfb051 (patch) | |
tree | 0b64b3939439231dda9d302db48a0842d8e4e0b0 /scripts/build-many-glibcs.py | |
parent | y2038: include: Move struct __timeval64 definition to a separate file (diff) | |
download | glibc-dbf8178fdc1cc1c884efd2f5b55703da5adfb051.tar.xz glibc-dbf8178fdc1cc1c884efd2f5b55703da5adfb051.zip |
y2038: Introduce struct __timex64 - new internal glibc type
The introduced glibc's 'internal' struct __timex64 is a copy of Linux kernel's
struct __kernel_timex (v5.6) introduced for properly handling data for
clock_adjtime64 syscall.
As the struct's __kernel_timex size is the same as for archs with
__WORDSIZE == 64, proper padding and data types conversion (i.e. long to long
long) had to be added for architectures with __WORDSIZE == 32 &&
__TIMESIZE != 64.
Moreover, it stores time in struct __timeval64 rather than struct
timeval, which makes it Y2038-proof.
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 'scripts/build-many-glibcs.py')
0 files changed, 0 insertions, 0 deletions