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