1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #include <fcntl.h>
8 #include <time.h>
9 
10 #define TFD_NONBLOCK O_NONBLOCK
11 #define TFD_CLOEXEC O_CLOEXEC
12 
13 #define TFD_TIMER_ABSTIME 1
14 
15 struct itimerspec;
16 
17 int timerfd_create(int, int);
18 int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*);
19 int timerfd_gettime(int, struct itimerspec*);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24