|
From: <sv...@va...> - 2010-01-03 11:29:47
|
Author: sewardj
Date: 2010-01-03 11:29:35 +0000 (Sun, 03 Jan 2010)
New Revision: 10994
Log:
Handle sys_pipe2 on arm-linux; also add some missing numbers to
vki-scnums-arm-linux.h.
Modified:
trunk/coregrind/m_syswrap/syswrap-arm-linux.c
trunk/include/vki/vki-scnums-arm-linux.h
Modified: trunk/coregrind/m_syswrap/syswrap-arm-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-arm-linux.c 2010-01-03 10:14:03 UTC (rev 10993)
+++ trunk/coregrind/m_syswrap/syswrap-arm-linux.c 2010-01-03 11:29:35 UTC (rev 10994)
@@ -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
};
Modified: trunk/include/vki/vki-scnums-arm-linux.h
===================================================================
--- trunk/include/vki/vki-scnums-arm-linux.h 2010-01-03 10:14:03 UTC (rev 10993)
+++ trunk/include/vki/vki-scnums-arm-linux.h 2010-01-03 11:29:35 UTC (rev 10994)
@@ -391,8 +391,15 @@
#define __NR_fallocate 352
#define __NR_timerfd_settime 353
#define __NR_timerfd_gettime 354
+#define __NR_signalfd4 355
+#define __NR_eventfd2 356
+#define __NR_epoll_create1 357
+#define __NR_dup3 358
+#define __NR_pipe2 359
+#define __NR_inotify_init1 360
+
#define __NR_ARM_BASE (0x0f0000)
#define __NR_ARM_breakpoint (__NR_ARM_BASE+1)
#define __NR_ARM_cacheflush (__NR_ARM_BASE+2)
|