Mark Wielaard bc6990
commit c79fe53e9e31d5c8e5d2ad3a0943b21e84129ccb
Mark Wielaard bc6990
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mark Wielaard bc6990
Date:   Tue Feb 10 13:39:04 2015 +0000
Mark Wielaard bc6990
Mark Wielaard bc6990
    Bug #344007 accept4 syscall unhandled on arm64 (242) and ppc64 (344)
Mark Wielaard bc6990
    
Mark Wielaard bc6990
    ppc64 might fall back to socketcall in some cases, but arm64 always uses
Mark Wielaard bc6990
    accept4 syscall directly. Some (confusing) background on when/how glibc
Mark Wielaard bc6990
    (wrongly) decides to use a direct accept4 or the socketcall system call:
Mark Wielaard bc6990
    https://sourceware.org/ml/libc-alpha/2013-12/msg00014.html
Mark Wielaard bc6990
    
Mark Wielaard bc6990
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14926 a5019735-40e9-0310-863c-91ae7b9d1cf9
Mark Wielaard bc6990
Mark Wielaard bc6990
diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
Mark Wielaard bc6990
index 25e0bde..8d5fa08 100644
Mark Wielaard bc6990
--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
Mark Wielaard bc6990
+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
Mark Wielaard bc6990
@@ -1152,6 +1152,8 @@ static SyscallTableEntry syscall_table[] = {
Mark Wielaard bc6990
    LINX_(__NR_pwritev,           sys_pwritev),          // 321
Mark Wielaard bc6990
    LINXY(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo),// 322
Mark Wielaard bc6990
 
Mark Wielaard bc6990
+   LINXY(__NR_accept4,           sys_accept4),          // 344
Mark Wielaard bc6990
+
Mark Wielaard bc6990
    LINXY(__NR_clock_adjtime,     sys_clock_adjtime),    // 347
Mark Wielaard bc6990
 
Mark Wielaard bc6990
    LINXY(__NR_process_vm_readv,  sys_process_vm_readv), // 351