From 8b1f93af01efe07e8337925cd065caf092e071ec Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 29 Sep 2020 12:24:28 +0800 Subject: [PATCH] syscall/eventfd: correct the syscall prototype of eventfd(2) proxies/PROXY_eventfd.c:12:14: error: conflicting types for 'eventfd' 12 | unsigned int eventfd(int parm1) | ^~~~~~~ In file included from proxies/PROXY_eventfd.c:7: nuttx/include/sys/eventfd.h:63:5: note: previous declaration of 'eventfd' was here 63 | int eventfd(unsigned int count, int flags); | ^~~~~~~ Change-Id: I7ed0b8b442eac72592dea0e5754a36fb60ca5f8d Signed-off-by: chao.an --- syscall/syscall.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscall/syscall.csv b/syscall/syscall.csv index 59d1d6d643..7b727adcf1 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -19,7 +19,7 @@ "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" -"eventfd","sys/eventfd.h","defined(CONFIG_EVENT_FD)","unsigned 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 const struct symtab_s *","int" "execv","unistd.h","!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)","int","FAR const char *","FAR char * const []|FAR char * const *" "exit","stdlib.h","","void","int"