From 558c01338b0b635632e70af6ec8a484ca70b0328 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 29 Jul 2019 20:57:05 -0400 Subject: setitimer, getitimer: decouple time_t from long these functions have no new time64 syscall, so the existence of a time64 syscall cannot be used as the condition for the new code. instead, assume the syscall takes timevals as longs, which is true everywhere but x32, and interface with the kernel through long[4] objects. rather than adding new hacks to special-case x32 here, just add x32-specific source files since a trivial syscall wrapper suffices there. the new code paths added in this commit are statically unreachable on all current archs, but will become reachable when 32-bit archs get 64-bit time_t. --- src/signal/x32/getitimer.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/signal/x32/getitimer.c (limited to 'src/signal/x32/getitimer.c') diff --git a/src/signal/x32/getitimer.c b/src/signal/x32/getitimer.c new file mode 100644 index 00000000..8a8046a7 --- /dev/null +++ b/src/signal/x32/getitimer.c @@ -0,0 +1,7 @@ +#include +#include "syscall.h" + +int getitimer(int which, struct itimerval *old) +{ + return syscall(SYS_getitimer, which, old); +} -- cgit 1.4.1