about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/setitimer.c
Commit message (Collapse)AuthorAgeFilesLines
* linux: Use long time_t __getitimer/__setitimerAlistair Francis2020-04-021-0/+90
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 <lukma@denx.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>