From e24ea886e52fb57d1f40c945c3d3bf0c805fb09f Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Mon, 16 Jul 2012 14:35:26 +0000 Subject: [PATCH] Add some missing syscall numbers for MIPS. The header file has been extended with the missing syscall numbers for MIPS, and sys_prlimit64 has been enabled. This will make none/tests/rlimit64_nofile pass. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12752 --- coregrind/m_syswrap/syswrap-mips32-linux.c | 3 ++- include/vki/vki-scnums-mips32-linux.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/coregrind/m_syswrap/syswrap-mips32-linux.c b/coregrind/m_syswrap/syswrap-mips32-linux.c index e4db8c6be1..184a2bff86 100644 --- a/coregrind/m_syswrap/syswrap-mips32-linux.c +++ b/coregrind/m_syswrap/syswrap-mips32-linux.c @@ -1738,7 +1738,8 @@ static SyscallTableEntry syscall_main_table[] = { LINXY (__NR_signalfd4, sys_signalfd4), // 324 LINX_ (__NR_eventfd2, sys_eventfd2), // 325 LINXY (__NR_pipe2, sys_pipe2), // 328 - LINXY (__NR_inotify_init1, sys_inotify_init1) // 329 + LINXY (__NR_inotify_init1, sys_inotify_init1), // 329 + LINXY (__NR_prlimit64, sys_prlimit64) // 338 }; SyscallTableEntry* ML_(get_linux_syscall_entry) (UInt sysno) diff --git a/include/vki/vki-scnums-mips32-linux.h b/include/vki/vki-scnums-mips32-linux.h index 49c24a1a71..cdcac7ba79 100644 --- a/include/vki/vki-scnums-mips32-linux.h +++ b/include/vki/vki-scnums-mips32-linux.h @@ -372,6 +372,14 @@ #define __NR_rt_tgsigqueueinfo (__NR_Linux + 332) #define __NR_perf_event_open (__NR_Linux + 333) #define __NR_accept4 (__NR_Linux + 334) +#define __NR_recvmmsg (__NR_Linux + 335) +#define __NR_fanotify_init (__NR_Linux + 336) +#define __NR_fanotify_mark (__NR_Linux + 337) +#define __NR_prlimit64 (__NR_Linux + 338) +#define __NR_name_to_handle_at (__NR_Linux + 339) +#define __NR_open_by_handle_at (__NR_Linux + 340) +#define __NR_clock_adjtime (__NR_Linux + 341) +#define __NR_syncfs (__NR_Linux + 342) /* * Offset of the last Linux o32 flavoured syscall -- 2.47.2