From 464cd3a9d5f505d92bae9a941bb75b0d91ac14ee Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Fri, 22 Mar 2019 11:53:45 +0100 Subject: [PATCH] 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 | 4 ++++ include/time.h | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index bb53a33e68..31e49765ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-09-26 Lukasz Majewski + + * include/time.h: Add struct __timespec64 definition + 2019-09-26 Siddhesh Poyarekar * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1 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