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:
parent
95fda5dfb7
commit
4288f70d04
|
|
@ -19,14 +19,14 @@ struct pollfd
|
|||
typedef unsigned long nfds_t;
|
||||
|
||||
#define POLLIN 0x001
|
||||
#define POLLRDNORM 0x002
|
||||
#define POLLRDBAND 0x004
|
||||
#define POLLPRI 0x008
|
||||
#define POLLOUT 0x010
|
||||
#define POLLWRNORM 0x020
|
||||
#define POLLWRBAND 0x040
|
||||
#define POLLERR 0x080
|
||||
#define POLLHUP 0x100
|
||||
#define POLLOUT 0x002
|
||||
#define POLLERR 0x004
|
||||
#define POLLHUP 0x008
|
||||
#define POLLPRI 0x010
|
||||
#define POLLRDNORM 0x020
|
||||
#define POLLRDBAND 0x040
|
||||
#define POLLWRNORM 0x080
|
||||
#define POLLWRBAND 0x100
|
||||
#define POLLNVAL 0x200
|
||||
|
||||
int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ struct epoll_event
|
|||
|
||||
#define EPOLLIN 0x01
|
||||
#define EPOLLOUT 0x02
|
||||
#define EPOLLPRI 0x04
|
||||
#define EPOLLERR 0x08
|
||||
#define EPOLLHUP 0x10
|
||||
#define EPOLLERR 0x04
|
||||
#define EPOLLHUP 0x08
|
||||
#define EPOLLPRI 0x10
|
||||
#define EPOLLET 0x20
|
||||
#define EPOLLONESHOT 0x40
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue