瀏覽代碼

add missing flags in sys/timerfd.h

Rich Felker 12 年之前
父節點
當前提交
d50955620f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/sys/timerfd.h

+ 6 - 0
include/sys/timerfd.h

@@ -6,6 +6,12 @@ extern "C" {
 #endif
 
 #include <time.h>
+#include <fcntl.h>
+
+#define TFD_NONBLOCK O_NONBLOCK
+#define TFD_CLOEXEC O_CLOEXEC
+
+#define TFD_TIMER_ABSTIME 1
 
 int timerfd_create(int, int);
 int timerfd_settime(int, int, const struct itimerspec *, struct itimerspec *);