]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/monotonic.h
flock: improve timeout handling
[thirdparty/util-linux.git] / include / monotonic.h
1 #ifndef UTIL_LINUX_BOOTTIME_H
2 #define UTIL_LINUX_BOOTTIME_H
3
4 /*
5 * Uses clock_gettime() that requires $CLOCKGETTIME_LIBS
6 */
7 extern int get_boot_time(struct timeval *boot_time);
8
9 extern int gettime_monotonic(struct timeval *tv);
10
11 extern int setup_timer(timer_t * t_id, struct itimerval *timeout,
12 void (*timeout_handler)(void));
13 extern void cancel_timer(timer_t * t_id);
14
15 #endif /* UTIL_LINUX_BOOTTIME_H */