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:
Xiang Xiao 2023-01-22 03:49:11 +08:00 committed by Petro Karashchenko
parent 267e80a9e7
commit f9836c94fb
1 changed files with 10 additions and 2 deletions

View File

@ -40,6 +40,9 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <poll.h>
#include <fcntl.h>
@ -91,12 +94,17 @@ enum
#define EPOLL_CLOEXEC EPOLL_CLOEXEC
};
typedef union poll_data
union epoll_data
{
FAR void *ptr;
int fd;
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
{