Debian Codegraph @

libphobos/libdruntime/core/sys/linux/timerfd.d

raw
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 @nogc:
15 nothrow:
16
17 int timerfd_create(int clockid, int flags);
18 int timerfd_settime(int fd, int flags, const itimerspec* new_value, itimerspec* old_value);
19 int timerfd_gettime(int fd, itimerspec* curr_value);
20
21 enum TFD_TIMER_ABSTIME = 1 << 0;
22 enum TFD_TIMER_CANCEL_ON_SET = 1 << 1;
23 enum TFD_CLOEXEC = 0x80000;
24 enum TFD_NONBLOCK = 0x800;