]> granicus.if.org Git - strace/commitdiff
2003-03-14 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 14 Mar 2003 10:32:36 +0000 (10:32 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 14 Mar 2003 10:32:36 +0000 (10:32 +0000)
* linux/ia64/syscallent.h: clone takes 5 arguments.
* process.c [LINUX && IA64] (ARG_*): Update for 2.5 clone calls.

linux/ia64/syscallent.h
process.c

index 5ee5088ceee698bd0fd7b822c4155513f10d6f0c..da3c845aecf04bf9aef35364c47fc4c539fb67a0 100644 (file)
        { 5,    0,      printargs,              "vm86"          }, /* 1125 */
        { 4,    TP,     sys_wait4,              "wait4"         }, /* 1126 */
        { 1,    0,      sys_sysinfo,            "sysinfo"       }, /* 1127 */
-       { 4,    TP,     sys_clone,              "clone"         }, /* 1128 */
+       { 5,    TP,     sys_clone,              "clone"         }, /* 1128 */
        { 2,    0,      sys_setdomainname,      "setdomainname" }, /* 1129 */
        { 1,    0,      sys_uname,              "uname"         }, /* 1130 */
        { 1,    0,      sys_adjtimex,           "adjtimex"      }, /* 1131 */
index f74699d718518c754b0878f882261bc4e0db1e98..6a2fad397a3d4a60fc8f8b8e4d0ba77ac000f9f8 100644 (file)
--- a/process.c
+++ b/process.c
@@ -529,9 +529,9 @@ extern void print_ldt_entry();
 #  define ARG_FLAGS    0
 #  define ARG_STACK    1
 #  define ARG_STACKSIZE        (tcp->scno == SYS_clone2 ? 2 : -1)
-#  define ARG_CTID     (tcp->scno == SYS_clone2 ? 3 : 2)
-#  define ARG_PTID     (tcp->scno == SYS_clone2 ? 4 : -1)
-#  define ARG_TLS      (tcp->scno == SYS_clone2 ? 5 : 3)
+#  define ARG_PTID     (tcp->scno == SYS_clone2 ? 3 : 2)
+#  define ARG_CTID     (tcp->scno == SYS_clone2 ? 4 : 3)
+#  define ARG_TLS      (tcp->scno == SYS_clone2 ? 5 : 4)
 # elif defined S390
 #  define ARG_STACK    0
 #  define ARG_FLAGS    1