Update and fix a patch to strace.

This commit is contained in:
Yann E. MORIN" 2007-07-16 18:58:40 +00:00
parent 09cd1dce17
commit ca06c37200

View File

@ -1,31 +1,33 @@
diff -dur strace-4.5.15.orig/linux/syscallent.h strace-4.5.15/linux/syscallent.h diff -dur strace-4.5.15.orig/linux/syscallent.h strace-4.5.15/linux/syscallent.h
--- strace-4.5.15.orig/linux/syscallent.h 2006-10-16 03:17:52.000000000 +0200 --- strace-4.5.15.orig/linux/syscallent.h 2006-10-16 03:17:52.000000000 +0200
+++ strace-4.5.15/linux/syscallent.h 2007-07-14 19:30:16.000000000 +0200 +++ strace-4.5.15/linux/syscallent.h 2007-07-14 19:30:16.000000000 +0200
@@ -130,7 +130,10 @@ @@ -130,7 +130,11 @@
{ 2, TF, sys_statfs, "statfs" }, /* 99 */ { 2, TF, sys_statfs, "statfs" }, /* 99 */
{ 2, TD, sys_fstatfs, "fstatfs" }, /* 100 */ { 2, TD, sys_fstatfs, "fstatfs" }, /* 100 */
{ 3, 0, sys_ioperm, "ioperm" }, /* 101 */ { 3, 0, sys_ioperm, "ioperm" }, /* 101 */
- { 2, TD, sys_socketcall, "socketcall", SYS_socketcall }, /* 102 */ - { 2, TD, sys_socketcall, "socketcall", SYS_socketcall }, /* 102 */
+ { 2, TD, sys_socketcall, "socketcall", + { 2, TD, sys_socketcall, "socketcall"
+#ifdef __NR_socketcall +#ifdef __NR_socketcall
+ SYS_socketcall }, /* 102 */ + , SYS_socketcall
+#endif +#endif
+ }, /* 102 */
{ 3, 0, sys_syslog, "syslog" }, /* 103 */ { 3, 0, sys_syslog, "syslog" }, /* 103 */
{ 3, 0, sys_setitimer, "setitimer" }, /* 104 */ { 3, 0, sys_setitimer, "setitimer" }, /* 104 */
{ 2, 0, sys_getitimer, "getitimer" }, /* 105 */ { 2, 0, sys_getitimer, "getitimer" }, /* 105 */
@@ -145,7 +148,10 @@ @@ -145,7 +149,11 @@
{ 4, TP, sys_wait4, "wait4", SYS_wait4 }, /* 114 */ { 4, TP, sys_wait4, "wait4", SYS_wait4 }, /* 114 */
{ 1, 0, sys_swapoff, "swapoff" }, /* 115 */ { 1, 0, sys_swapoff, "swapoff" }, /* 115 */
{ 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */ { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */
- { 6, 0, sys_ipc, "ipc", SYS_ipc }, /* 117 */ - { 6, 0, sys_ipc, "ipc", SYS_ipc }, /* 117 */
+ { 6, 0, sys_ipc, "ipc", + { 6, 0, sys_ipc, "ipc"
+#ifdef __NR_ipc +#ifdef __NR_ipc
+ SYS_ipc }, /* 117 */ + , SYS_ipc
+#endif +#endif
+ }, /* 117 */
{ 1, TD, sys_fsync, "fsync" }, /* 118 */ { 1, TD, sys_fsync, "fsync" }, /* 118 */
{ 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */ { 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */
{ 5, TP, sys_clone, "clone", SYS_clone }, /* 120 */ { 5, TP, sys_clone, "clone", SYS_clone }, /* 120 */
@@ -282,7 +288,11 @@ @@ -282,7 +290,11 @@
{ 3, 0, sys_io_cancel, "io_cancel" }, /* 249 */ { 3, 0, sys_io_cancel, "io_cancel" }, /* 249 */
{ 5, 0, sys_fadvise64, "fadvise64" }, /* 250 */ { 5, 0, sys_fadvise64, "fadvise64" }, /* 250 */
{ 5, 0, printargs, "SYS_251" }, /* 251 */ { 5, 0, printargs, "SYS_251" }, /* 251 */