summaryrefslogtreecommitdiffstats
path: root/package/strace
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-02-04 18:21:58 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-02-04 18:21:58 +0000
commit1c8951ca79f1603d40374618f42b2325c81ac6cb (patch)
tree64b5647e7142896106a5693bc9749261bf48e7fb /package/strace
parent3c1f00b21a11a861ffee0ef801dc57b50b0639c1 (diff)
downloadbuildroot-novena-1c8951ca79f1603d40374618f42b2325c81ac6cb.tar.gz
buildroot-novena-1c8951ca79f1603d40374618f42b2325c81ac6cb.zip
- account for some more possibly unavailable syscalls
Diffstat (limited to 'package/strace')
-rw-r--r--package/strace/strace-undef-syscall.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/strace/strace-undef-syscall.patch b/package/strace/strace-undef-syscall.patch
index 410e499d9..ffb8acf79 100644
--- a/package/strace/strace-undef-syscall.patch
+++ b/package/strace/strace-undef-syscall.patch
@@ -13,3 +13,50 @@
{ 4, 0, printargs, "lookup_dcookie"}, /* 253 */
{ 1, 0, sys_epoll_create, "epoll_create" }, /* 254 */
{ 4, 0, sys_epoll_ctl, "epoll_ctl" }, /* 255 */
+--- strace-4.5.15.orig/linux/syscallent.h 2007-02-04 19:03:48.000000000 +0100
++++ strace-4.5.15/linux/syscallent.h 2007-02-04 19:11:04.000000000 +0100
+@@ -130,7 +130,10 @@
+ { 2, TF, sys_statfs, "statfs" }, /* 99 */
+ { 2, TD, sys_fstatfs, "fstatfs" }, /* 100 */
+ { 3, 0, sys_ioperm, "ioperm" }, /* 101 */
+- { 2, TD, sys_socketcall, "socketcall", SYS_socketcall }, /* 102 */
++ { 2, TD, sys_socketcall, "socketcall",
++#ifdef __NR_socketcall
++ SYS_socketcall }, /* 102 */
++#endif
+ { 3, 0, sys_syslog, "syslog" }, /* 103 */
+ { 3, 0, sys_setitimer, "setitimer" }, /* 104 */
+ { 2, 0, sys_getitimer, "getitimer" }, /* 105 */
+@@ -145,7 +148,10 @@
+ { 4, TP, sys_wait4, "wait4", SYS_wait4 }, /* 114 */
+ { 1, 0, sys_swapoff, "swapoff" }, /* 115 */
+ { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */
+- { 6, 0, sys_ipc, "ipc", SYS_ipc }, /* 117 */
++ { 6, 0, sys_ipc, "ipc",
++#ifdef __NR_ipc
++ SYS_ipc }, /* 117 */
++#endif
+ { 1, TD, sys_fsync, "fsync" }, /* 118 */
+ { 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */
+ { 5, TP, sys_clone, "clone", SYS_clone }, /* 120 */
+--- strace-4.5.15.orig/syscall.c 2007-02-04 19:03:48.000000000 +0100
++++ strace-4.5.15/syscall.c 2007-02-04 19:07:26.000000000 +0100
+@@ -2404,14 +2404,18 @@
+ switch (known_scno(tcp)) {
+ #ifdef LINUX
+ #if !defined (ALPHA) && !defined(SPARC) && !defined(SPARC64) && !defined(MIPS) && !defined(HPPA)
++#ifdef __NR_socketcall
+ case SYS_socketcall:
+ decode_subcall(tcp, SYS_socket_subcall,
+ SYS_socket_nsubcalls, deref_style);
+ break;
++#endif
++#ifdef __NR_ipc
+ case SYS_ipc:
+ decode_subcall(tcp, SYS_ipc_subcall,
+ SYS_ipc_nsubcalls, shift_style);
+ break;
++#endif
+ #endif /* !ALPHA && !MIPS && !SPARC && !SPARC64 && !HPPA */
+ #if defined (SPARC) || defined (SPARC64)
+ case SYS_socketcall: