[PATCH v9] y2038: Introduce struct __timespec64 - new internal glibc type
Joseph Myers
joseph@codesourcery.com
Thu Sep 26 16:01:00 GMT 2019
On Thu, 26 Sep 2019, Lukasz Majewski wrote:
> This type is a glibc's "internal" type similar to struct timespec but
> whose tv_sec field is a __time64_t rather than a time_t, which makes it
> Y2038-proof and usable to pass syscalls between user code and Y2038-proof
> kernel.
>
> To support passing this structure to the kernel - the unnamed 32 bit
> padding bit-field has been introduced. The placement of it depends on
> the endianness of the SoC.
>
> Tested on x86_64 and ARM.
>
> * include/time.h: Add struct __timespec64 definition
This patch is OK, please commit.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list