mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
fs/epoll: change type of eventset from uint8_t to uint32_t
to support EPOLLONESHOT and so on. Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
+3
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user