diff options
Diffstat (limited to 'include/sys')
| -rw-r--r-- | include/sys/eventfd.h | 5 | ||||
| -rw-r--r-- | include/sys/inotify.h | 5 | 
2 files changed, 6 insertions, 4 deletions
diff --git a/include/sys/eventfd.h b/include/sys/eventfd.h index 13bc9c4c..dc5c88f0 100644 --- a/include/sys/eventfd.h +++ b/include/sys/eventfd.h @@ -6,12 +6,13 @@ extern "C" {  #endif  #include <stdint.h> +#include <fcntl.h>  typedef uint64_t eventfd_t;  #define EFD_SEMAPHORE 1 -#define EFD_CLOEXEC 02000000 -#define EFD_NONBLOCK 04000 +#define EFD_CLOEXEC O_CLOEXEC +#define EFD_NONBLOCK O_NONBLOCK  int eventfd(unsigned int, int);  int eventfd_read(int, eventfd_t *); diff --git a/include/sys/inotify.h b/include/sys/inotify.h index 78acdfd0..fe251360 100644 --- a/include/sys/inotify.h +++ b/include/sys/inotify.h @@ -6,6 +6,7 @@ extern "C" {  #endif  #include <stdint.h> +#include <fcntl.h>  struct inotify_event {  	int wd; @@ -13,8 +14,8 @@ struct inotify_event {  	char name[];  }; -#define IN_CLOEXEC 02000000 -#define IN_NONBLOCK 04000 +#define IN_CLOEXEC O_CLOEXEC +#define IN_NONBLOCK O_NONBLOCK  #define IN_ACCESS        0x00000001  #define IN_MODIFY        0x00000002  | 
