From 4288f70d04edfcd6d529ac3efe3de78b6129c055 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 9 Nov 2025 16:37:00 +0200 Subject: [PATCH] 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 --- userspace/libraries/LibC/include/poll.h | 16 ++++++++-------- userspace/libraries/LibC/include/sys/epoll.h | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/userspace/libraries/LibC/include/poll.h b/userspace/libraries/LibC/include/poll.h index 5e4fd35a..324e8299 100644 --- a/userspace/libraries/LibC/include/poll.h +++ b/userspace/libraries/LibC/include/poll.h @@ -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); diff --git a/userspace/libraries/LibC/include/sys/epoll.h b/userspace/libraries/LibC/include/sys/epoll.h index 2ae26d0d..23dc87db 100644 --- a/userspace/libraries/LibC/include/sys/epoll.h +++ b/userspace/libraries/LibC/include/sys/epoll.h @@ -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