epoll.h: Add u64 field like Linux
https://man7.org/linux/man-pages/man2/epoll_wait.2.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
267e80a9e7
commit
f9836c94fb
|
@ -40,6 +40,9 @@
|
||||||
* Included Files
|
* Included Files
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include <nuttx/config.h>
|
||||||
|
#include <nuttx/compiler.h>
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
@ -91,12 +94,17 @@ enum
|
||||||
#define EPOLL_CLOEXEC EPOLL_CLOEXEC
|
#define EPOLL_CLOEXEC EPOLL_CLOEXEC
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef union poll_data
|
union epoll_data
|
||||||
{
|
{
|
||||||
FAR void *ptr;
|
FAR void *ptr;
|
||||||
int fd;
|
int fd;
|
||||||
uint32_t u32;
|
uint32_t u32;
|
||||||
} epoll_data_t;
|
#ifdef CONFIG_HAVE_LONG_LONG
|
||||||
|
uint64_t u64;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef union epoll_data epoll_data_t;
|
||||||
|
|
||||||
struct epoll_event
|
struct epoll_event
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue