From f9836c94fb13b3123a002a18fd9a1d29bcfb09e3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 22 Jan 2023 03:49:11 +0800 Subject: [PATCH] epoll.h: Add u64 field like Linux https://man7.org/linux/man-pages/man2/epoll_wait.2.html Signed-off-by: Xiang Xiao --- include/sys/epoll.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/sys/epoll.h b/include/sys/epoll.h index 2652b8d8af..e9f9405467 100644 --- a/include/sys/epoll.h +++ b/include/sys/epoll.h @@ -40,6 +40,9 @@ * Included Files ****************************************************************************/ +#include +#include + #include #include @@ -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 {