api: fix definition of EPOLLONESHOT to match Linux

This commit is contained in:
Bert Belder 2020-11-30 18:55:57 +01:00
parent 4dfe24747e
commit 7958b3048f
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -19,7 +19,7 @@ enum EPOLL_EVENTS {
EPOLLWRBAND = (int) (1U << 9),
EPOLLMSG = (int) (1U << 10), /* Never reported. */
EPOLLRDHUP = (int) (1U << 13),
EPOLLONESHOT = (int) (1U << 31)
EPOLLONESHOT = (int) (1U << 30)
};
#define EPOLLIN (1U << 0)
@ -33,7 +33,7 @@ enum EPOLL_EVENTS {
#define EPOLLWRBAND (1U << 9)
#define EPOLLMSG (1U << 10)
#define EPOLLRDHUP (1U << 13)
#define EPOLLONESHOT (1U << 31)
#define EPOLLONESHOT (1U << 30)
#define EPOLL_CTL_ADD 1
#define EPOLL_CTL_MOD 2