1 /**
2  * D header file to interface with the Linux timefd API <http://man7.org/linux/man-pages/man2/timerfd_create.2.html>
3  * Available since Linux 2.6
4  *
5  * License : $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
6  */
7 module core.sys.linux.timerfd;
8 
9 version (linux):
10 
11 public import core.sys.posix.time;
12 
13 extern (C):
14 @system:
15 @nogc:
16 nothrow:
17 
18 int timerfd_create(int clockid, int flags);
19 int timerfd_settime(int fd, int flags, const itimerspec* new_value, itimerspec* old_value);
20 int timerfd_gettime(int fd, itimerspec* curr_value);
21 
22 enum TFD_TIMER_ABSTIME = 1 << 0;
23 enum TFD_TIMER_CANCEL_ON_SET = 1 << 1;
24 enum TFD_CLOEXEC       = 0x80000;
25 enum TFD_NONBLOCK      = 0x800;
26