]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/timer.h
2 * No copyright is claimed. This code is in the public domain; do with
5 #ifndef UTIL_LINUX_TIMER_H
6 #define UTIL_LINUX_TIMER_H
11 #ifdef HAVE_TIMER_CREATE
17 struct itimerval old_timer
;
18 struct sigaction old_sa
;
22 extern int setup_timer(struct ul_timer
*timer
, struct itimerval
*timeout
,
23 void (*timeout_handler
)(int, siginfo_t
*, void *));
24 extern void cancel_timer(struct ul_timer
*timer
);
26 #endif /* UTIL_LINUX_TIMER_H */