From: Alistair Francis Date: Mon, 23 Dec 2019 19:45:01 +0000 (-0800) Subject: linux: Use long time_t __getitimer/__setitimer X-Git-Tag: glibc-2.32~460 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a51e03588937ad804a9f583ea3d0fc0a4d088c33;p=thirdparty%2Fglibc.git linux: Use long time_t __getitimer/__setitimer The Linux kernel expects itimerval to use a 32-bit time_t, even on archs with a 64-bit time_t (like RV32). To address this let's convert itimerval to/from 32-bit and 64-bit to ensure the kernel always gets a 32-bit time_t. While we are converting these functions let's also convert them to be the y2038 safe versions. This means there is a *64 function that is called by a backwards compatible wrapper. Tested-by: Lukasz Majewski Reviewed-by: Adhemerval Zanella --- diff --git a/include/time.h b/include/time.h index 2523e0ff0d5..4522fe9c4f6 100644 --- a/include/time.h +++ b/include/time.h @@ -6,6 +6,7 @@ # include # include # include