From 464cd3a9d5f505d92bae9a941bb75b0d91ac14ee Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Fri, 22 Mar 2019 11:53:45 +0100 Subject: 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. --- include/time.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include') diff --git a/include/time.h b/include/time.h index dcf91855ad..9727786634 100644 --- a/include/time.h +++ b/include/time.h @@ -5,6 +5,7 @@ # include # include # include