1#pragma once 2 3#ifdef __cplusplus 4extern "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 15struct itimerspec; 16 17int timerfd_create(int, int); 18int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*); 19int timerfd_gettime(int, struct itimerspec*); 20 21#ifdef __cplusplus 22} 23#endif 24