From d535943a69f03033b077cb95cce162bb28b40b56 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 1 Apr 2022 17:49:10 +0800 Subject: [PATCH] fs/epoll: change type of eventset from uint8_t to uint32_t to support EPOLLONESHOT and so on. Signed-off-by: Jiuzhu Dong --- include/sys/poll.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sys/poll.h b/include/sys/poll.h index 015874fb1c..4562ac89b5 100644 --- a/include/sys/poll.h +++ b/include/sys/poll.h @@ -91,11 +91,11 @@ typedef unsigned int nfds_t; /* In the standard poll() definition, the size of the event set is 'short'. - * Here we pick the smallest storage element that will contain all of the - * poll events. + * Here we pick the uint32_t type to be consistent with the linux to support + * EPOLLRDHUP, EPOLLWAKEUP, EPOLLONESHOT... */ -typedef uint8_t pollevent_t; +typedef uint32_t pollevent_t; /* This is the NuttX variant of the standard pollfd structure. The poll() * interfaces receive a variable length array of such structures.