ffb8acf79e4371ee0f4e83b439cc6acb4cd8f46d
[openwrt/svn-archive/archive.git] / utils / strace / patches / 001-arm_eabi_syscalls.patch
1 --- strace-4.5.12/linux/syscallent.h.orig 2005-08-09 01:48:54.000000000 -0600
2 +++ strace-4.5.12/linux/syscallent.h 2005-08-09 01:50:23.000000000 -0600
3 @@ -298,7 +298,11 @@
4 { 3, 0, sys_io_cancel, "io_cancel" }, /* 249 */
5 { 5, TF, sys_fadvise64, "fadvise64" }, /* 250 */
6 { 5, 0, printargs, "SYS_251" }, /* 251 */
7 - { 1, TP, sys_exit, "exit_group", __NR_exit_group }, /* 252 */
8 + { 1, TP, sys_exit, "exit_group"
9 +#ifdef __NR_exit_group
10 + , __NR_exit_group
11 +#endif
12 + }, /* 252 */
13 { 4, 0, printargs, "lookup_dcookie"}, /* 253 */
14 { 1, 0, sys_epoll_create, "epoll_create" }, /* 254 */
15 { 4, 0, sys_epoll_ctl, "epoll_ctl" }, /* 255 */
16 --- strace-4.5.15.orig/linux/syscallent.h 2007-02-04 19:03:48.000000000 +0100
17 +++ strace-4.5.15/linux/syscallent.h 2007-02-04 19:11:04.000000000 +0100
18 @@ -130,7 +130,10 @@
19 { 2, TF, sys_statfs, "statfs" }, /* 99 */
20 { 2, TD, sys_fstatfs, "fstatfs" }, /* 100 */
21 { 3, 0, sys_ioperm, "ioperm" }, /* 101 */
22 - { 2, TD, sys_socketcall, "socketcall", SYS_socketcall }, /* 102 */
23 + { 2, TD, sys_socketcall, "socketcall",
24 +#ifdef __NR_socketcall
25 + SYS_socketcall }, /* 102 */
26 +#endif
27 { 3, 0, sys_syslog, "syslog" }, /* 103 */
28 { 3, 0, sys_setitimer, "setitimer" }, /* 104 */
29 { 2, 0, sys_getitimer, "getitimer" }, /* 105 */
30 @@ -145,7 +148,10 @@
31 { 4, TP, sys_wait4, "wait4", SYS_wait4 }, /* 114 */
32 { 1, 0, sys_swapoff, "swapoff" }, /* 115 */
33 { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */
34 - { 6, 0, sys_ipc, "ipc", SYS_ipc }, /* 117 */
35 + { 6, 0, sys_ipc, "ipc",
36 +#ifdef __NR_ipc
37 + SYS_ipc }, /* 117 */
38 +#endif
39 { 1, TD, sys_fsync, "fsync" }, /* 118 */
40 { 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */
41 { 5, TP, sys_clone, "clone", SYS_clone }, /* 120 */
42 --- strace-4.5.15.orig/syscall.c 2007-02-04 19:03:48.000000000 +0100
43 +++ strace-4.5.15/syscall.c 2007-02-04 19:07:26.000000000 +0100
44 @@ -2404,14 +2404,18 @@
45 switch (known_scno(tcp)) {
46 #ifdef LINUX
47 #if !defined (ALPHA) && !defined(SPARC) && !defined(SPARC64) && !defined(MIPS) && !defined(HPPA)
48 +#ifdef __NR_socketcall
49 case SYS_socketcall:
50 decode_subcall(tcp, SYS_socket_subcall,
51 SYS_socket_nsubcalls, deref_style);
52 break;
53 +#endif
54 +#ifdef __NR_ipc
55 case SYS_ipc:
56 decode_subcall(tcp, SYS_ipc_subcall,
57 SYS_ipc_nsubcalls, shift_style);
58 break;
59 +#endif
60 #endif /* !ALPHA && !MIPS && !SPARC && !SPARC64 && !HPPA */
61 #if defined (SPARC) || defined (SPARC64)
62 case SYS_socketcall: