From cf7ac30215e30cc69b1b22c2aba110fbf1b85099 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 9 Sep 2023 21:25:06 +0200 Subject: Added syscall 284 (for #965) --- src/emu/x64syscall.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c index 7eb2d533..994b1480 100644 --- a/src/emu/x64syscall.c +++ b/src/emu/x64syscall.c @@ -6,6 +6,7 @@ #include /* For SYS_xxx definitions */ #include +#include #include #include #include @@ -746,6 +747,12 @@ void EXPORT x64Syscall(x64emu_t *emu) R_EAX = -errno; } break; + #ifndef _NR_eventfd + case 284: // sys_eventfd + R_EAX = eventfd((int)R_EDI, 0); + if(R_EAX==-1) + R_EAX = -errno; + #endif case 317: // sys_seccomp R_RAX = 0; // ignoring call break; @@ -1006,6 +1013,10 @@ uintptr_t EXPORT my_syscall(x64emu_t *emu) return signalfd((int)R_ESI, set, 0); } break; + #ifndef _NR_eventfd + case 284: // sys_eventfd + return eventfd((int)R_ESI, 0); + #endif case 317: // sys_seccomp return 0; // ignoring call #ifndef __NR_fchmodat4 -- cgit 1.4.1