]> git.ipfire.org Git - thirdparty/glibc.git/commit
y2038: Introduce struct __timespec64 - new internal glibc type
authorLukasz Majewski <lukma@denx.de>
Fri, 22 Mar 2019 10:53:45 +0000 (11:53 +0100)
committerLukasz Majewski <lukma@denx.de>
Thu, 26 Sep 2019 21:32:27 +0000 (23:32 +0200)
commit464cd3a9d5f505d92bae9a941bb75b0d91ac14ee
tree3dfe4ca0f5719315563612debadd43392ecbb4b1
parent8b45cac07907c1cd515240b284d4702c81b525d7
y2038: Introduce struct __timespec64 - new internal glibc type

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.
ChangeLog
include/time.h