#include <stdint.h>
#include <sys/types.h>
+#include <fcntl.h>
#define __NEED_sigset_t
#include <bits/alltypes.h>
-#define EPOLL_CLOEXEC 02000000
-#define EPOLL_NONBLOCK 04000
+#define EPOLL_CLOEXEC O_CLOEXEC
+#define EPOLL_NONBLOCK O_NONBLOCK
enum EPOLL_EVENTS { __EPOLL_DUMMY };
#define EPOLLIN 0x001
#define EPOLLERR 0x008
#define EPOLLHUP 0x010
#define EPOLLRDHUP 0x2000
+#define EPOLLWAKEUP (1U<<29)
#define EPOLLONESHOT (1U<<30)
#define EPOLLET (1U<<31)