LibC: Make poll and epoll macros match with each other
This was an assertion in one of my ports and I couldn't be bothered to write a patch for it :D
This commit is contained in:
@@ -19,14 +19,14 @@ struct pollfd
|
|||||||
typedef unsigned long nfds_t;
|
typedef unsigned long nfds_t;
|
||||||
|
|
||||||
#define POLLIN 0x001
|
#define POLLIN 0x001
|
||||||
#define POLLRDNORM 0x002
|
#define POLLOUT 0x002
|
||||||
#define POLLRDBAND 0x004
|
#define POLLERR 0x004
|
||||||
#define POLLPRI 0x008
|
#define POLLHUP 0x008
|
||||||
#define POLLOUT 0x010
|
#define POLLPRI 0x010
|
||||||
#define POLLWRNORM 0x020
|
#define POLLRDNORM 0x020
|
||||||
#define POLLWRBAND 0x040
|
#define POLLRDBAND 0x040
|
||||||
#define POLLERR 0x080
|
#define POLLWRNORM 0x080
|
||||||
#define POLLHUP 0x100
|
#define POLLWRBAND 0x100
|
||||||
#define POLLNVAL 0x200
|
#define POLLNVAL 0x200
|
||||||
|
|
||||||
int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ struct epoll_event
|
|||||||
|
|
||||||
#define EPOLLIN 0x01
|
#define EPOLLIN 0x01
|
||||||
#define EPOLLOUT 0x02
|
#define EPOLLOUT 0x02
|
||||||
#define EPOLLPRI 0x04
|
#define EPOLLERR 0x04
|
||||||
#define EPOLLERR 0x08
|
#define EPOLLHUP 0x08
|
||||||
#define EPOLLHUP 0x10
|
#define EPOLLPRI 0x10
|
||||||
#define EPOLLET 0x20
|
#define EPOLLET 0x20
|
||||||
#define EPOLLONESHOT 0x40
|
#define EPOLLONESHOT 0x40
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user