From 7a94a4553d7ddb879da9495341ec53d60869b713 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Thu, 23 Jan 2025 21:36:00 +0800 Subject: [PATCH] syscall: add missing epoll API Add missing epoll syscall API for kernelbuild epoll_create, epoll_pwait, epoll_close Signed-off-by: buxiasen --- include/sys/syscall_lookup.h | 3 +++ syscall/syscall.csv | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h index 8a4f281b063..47154b44aa5 100644 --- a/include/sys/syscall_lookup.h +++ b/include/sys/syscall_lookup.h @@ -389,8 +389,11 @@ SYSCALL_LOOKUP(nanosleep, 2) /* I/O event notification facility */ +SYSCALL_LOOKUP(epoll_close, 1) +SYSCALL_LOOKUP(epoll_create, 1) SYSCALL_LOOKUP(epoll_create1, 1) SYSCALL_LOOKUP(epoll_ctl, 4) +SYSCALL_LOOKUP(epoll_pwait, 5) SYSCALL_LOOKUP(epoll_wait, 4) /* POSIX timers */ diff --git a/syscall/syscall.csv b/syscall/syscall.csv index e834dedf61f..a766537e227 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -19,8 +19,11 @@ "connect","sys/socket.h","defined(CONFIG_NET)","int","int","FAR const struct sockaddr *","socklen_t" "dup","unistd.h","","int","int" "dup2","unistd.h","","int","int","int" +"epoll_close","sys/epoll.h","","void","int" +"epoll_create","sys/epoll.h","","int","int" "epoll_create1","sys/epoll.h","","int","int" "epoll_ctl","sys/epoll.h","","int","int","int","int","FAR struct epoll_event *" +"epoll_pwait","sys/epoll.h","","int","int","FAR struct epoll_event *","int","int","FAR const sigset_t *" "epoll_wait","sys/epoll.h","","int","int","FAR struct epoll_event *","int","int" "eventfd","sys/eventfd.h","defined(CONFIG_EVENT_FD)","int","unsigned int","int" "exec","nuttx/binfmt/binfmt.h","!defined(CONFIG_BINFMT_DISABLE) && !defined(CONFIG_BUILD_KERNEL)","int","FAR const char *","FAR char * const *","FAR char * const *","FAR const struct symtab_s *","int"