Handle sys_pipe2 on arm-linux; also add some missing numbers to
vki-scnums-arm-linux.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10994 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-arm-linux.c b/coregrind/m_syswrap/syswrap-arm-linux.c
index b672b3d..86d9f21 100644
--- a/coregrind/m_syswrap/syswrap-arm-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm-linux.c
@@ -1663,7 +1663,17 @@
LINX_(__NR_eventfd, sys_eventfd), // 323
// LINX_(__NR_fallocate, sys_ni_syscall), // 324
LINXY(__NR_timerfd_settime, sys_timerfd_settime), // 325
- LINXY(__NR_timerfd_gettime, sys_timerfd_gettime) // 326
+ LINXY(__NR_timerfd_gettime, sys_timerfd_gettime), // 326
+
+ ///////////////
+
+ // JRS 2010-Jan-03: I believe that all the numbers listed
+ // in comments in the table prior to this point (eg "// 326",
+ // etc) are bogus since it looks to me like they are copied
+ // verbatim from syswrap-x86-linux.c and they certainly do not
+ // correspond to what's in include/vki/vki-scnums-arm-linux.h.
+ // From here onwards, please ensure the numbers are correct.
+ LINXY(__NR_pipe2, sys_pipe2) // 359
};