From 8ea072767dc028b00062944d79c9d1fcee44c676 Mon Sep 17 00:00:00 2001 From: "Albert ARIBAUD (3ADEV)" Date: Fri, 8 Sep 2017 00:41:42 +0200 Subject: Y2038: add struct __timeval64 Also, provide static inline functions and macros for checking and converting between 32-bit and 64-bit timevals. --- bits/resource.h | 1 + include/bits/types/struct_timeval64.h | 1 + misc/sys/select.h | 1 + resource/bits/types/struct_rusage.h | 1 + sysdeps/unix/sysv/linux/alpha/bits/resource.h | 1 + sysdeps/unix/sysv/linux/bits/resource.h | 1 + sysdeps/unix/sysv/linux/bits/timex.h | 1 + sysdeps/unix/sysv/linux/mips/bits/resource.h | 1 + sysdeps/unix/sysv/linux/sparc/bits/resource.h | 1 + time/Makefile | 2 +- time/bits/types/struct_timeval64.h | 13 +++++++++++++ time/sys/time.h | 1 + 12 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 include/bits/types/struct_timeval64.h create mode 100644 time/bits/types/struct_timeval64.h diff --git a/bits/resource.h b/bits/resource.h index 7693d20fed..c0b00bec0e 100644 --- a/bits/resource.h +++ b/bits/resource.h @@ -134,6 +134,7 @@ enum __rusage_who }; #include +#include #include /* Priority limits. */ diff --git a/include/bits/types/struct_timeval64.h b/include/bits/types/struct_timeval64.h new file mode 100644 index 0000000000..fe2ffe6430 --- /dev/null +++ b/include/bits/types/struct_timeval64.h @@ -0,0 +1 @@ +#include