2 * timer_settime.c - set the timer.
8 #include <sys/syscall.h>
10 #include "kernel-posix-timers.h"
12 #ifdef __NR_timer_settime
14 #define __NR___syscall_timer_settime __NR_timer_settime
15 static __inline__
_syscall4(int, __syscall_timer_settime
, kernel_timer_t
, ktimerid
,
16 int, flags
, const void *, value
, void *, ovalue
);
18 /* Set the expiration time for a timer */
19 int timer_settime(timer_t timerid
, int flags
, const struct itimerspec
*value
,
20 struct itimerspec
*ovalue
)
22 struct timer
*kt
= (struct timer
*)timerid
;
25 return __syscall_timer_settime(kt
->ktimerid
, flags
, value
, ovalue
);