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:
parent
53fef8d9c4
commit
d535943a69
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user