syscall: add missing epoll API

Add missing epoll syscall API for kernelbuild
epoll_create, epoll_pwait, epoll_close

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen
2025-01-23 21:36:00 +08:00
committed by Xiang Xiao
parent 758b3baef0
commit 7a94a4553d
2 changed files with 6 additions and 0 deletions

View File

@@ -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 */

View File

@@ -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"
1 _assert assert.h void FAR const char * int FAR const char * FAR void *
19 connect sys/socket.h defined(CONFIG_NET) int int FAR const struct sockaddr * socklen_t
20 dup unistd.h int int
21 dup2 unistd.h int int int
22 epoll_close sys/epoll.h void int
23 epoll_create sys/epoll.h int int
24 epoll_create1 sys/epoll.h int int
25 epoll_ctl sys/epoll.h int int int int FAR struct epoll_event *
26 epoll_pwait sys/epoll.h int int FAR struct epoll_event * int int
27 epoll_wait sys/epoll.h int int FAR struct epoll_event * int int
28 eventfd sys/eventfd.h defined(CONFIG_EVENT_FD) int unsigned int int
29 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 *