Преглед на файлове

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 *);