X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fepoll.h;h=ac81a8418a0cc66b065cbb6d57ec3af0d6b4cc60;hb=c5d118ebbcfe41d928d8ffc913bc532c59237189;hp=3530a9acfe8b60c78373d31faf2e619e53173a89;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/sys/epoll.h b/include/sys/epoll.h index 3530a9ac..ac81a841 100644 --- a/include/sys/epoll.h +++ b/include/sys/epoll.h @@ -7,19 +7,21 @@ extern "C" { #include #include +#include #define __NEED_sigset_t #include -#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 EPOLLPRI 0x002 #define EPOLLOUT 0x004 #define EPOLLRDNORM 0x040 +#define EPOLLNVAL 0x020 #define EPOLLRDBAND 0x080 #define EPOLLWRNORM 0x100 #define EPOLLWRBAND 0x200 @@ -27,6 +29,8 @@ enum EPOLL_EVENTS { __EPOLL_DUMMY }; #define EPOLLERR 0x008 #define EPOLLHUP 0x010 #define EPOLLRDHUP 0x2000 +#define EPOLLEXCLUSIVE (1U<<28) +#define EPOLLWAKEUP (1U<<29) #define EPOLLONESHOT (1U<<30) #define EPOLLET (1U<<31) @@ -44,7 +48,11 @@ typedef union epoll_data { struct epoll_event { uint32_t events; epoll_data_t data; -} __attribute__ ((__packed__)); +} +#ifdef __x86_64__ +__attribute__ ((__packed__)) +#endif +; int epoll_create(int);