You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/07 04:14:13 UTC
[incubator-nuttx] 01/02: fs/epoll: change type of eventset from uint8_t to uint32_t
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit d535943a69f03033b077cb95cce162bb28b40b56
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Fri Apr 1 17:49:10 2022 +0800
fs/epoll: change type of eventset from uint8_t to uint32_t
to support EPOLLONESHOT and so on.
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
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.