From: Dmitry V. Levin Date: Tue, 7 May 2013 08:47:46 +0000 (+0000) Subject: ftruncate64, truncate64: fix number of syscall arguments X-Git-Tag: v4.8~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54aee7a38c0c70e468254e1d6c4ef61f36a128f8;p=strace ftruncate64, truncate64: fix number of syscall arguments The number of ftruncate64/truncate64 arguments depends on architecture and personality. For 64bit and ilp32 it equals to 2, for unaligned 32bit it equals to 3, and for aligned 32bit it equals to 4. * linux/or1k/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 3. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Change ftruncate64 and truncate64 handlers. * linux/sparc/syscallent.h: Change ftruncate64 handler, change the number of its arguments to 3. * linux/xtensa/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 4. --- diff --git a/linux/or1k/syscallent.h b/linux/or1k/syscallent.h index 4b59f750..a5987430 100644 --- a/linux/or1k/syscallent.h +++ b/linux/or1k/syscallent.h @@ -43,8 +43,8 @@ { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 42 */ { 3, TF, sys_statfs64, "statfs64" }, /* 43 */ { 3, TD, sys_fstatfs64, "fstatfs64" }, /* 44 */ - { 4, TF, sys_truncate64, "truncate64" }, /* 45 */ - { 4, TD, sys_ftruncate64, "ftruncate64" }, /* 46 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 45 */ + { 3, TD, sys_ftruncate64, "ftruncate64" }, /* 46 */ { 6, TD, sys_fallocate, "fallocate" }, /* 47 */ { 3, TD|TF, sys_faccessat, "faccessat" }, /* 48 */ { 1, TF, sys_chdir, "chdir" }, /* 49 */ diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h index bacd5d59..f9de8820 100644 --- a/linux/sh/syscallent.h +++ b/linux/sh/syscallent.h @@ -222,8 +222,8 @@ { 0, TP, sys_vfork, "vfork" }, /* 190 */ { 5, 0, printargs, "getrlimit" }, /* 191 */ { 6, TD|TM, sys_mmap_4koff, "mmap2" }, /* 192 */ - { 4, TF, sys_truncate64, "truncate64" }, /* 193 */ - { 4, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 3, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ { 2, TF, sys_stat64, "stat64" }, /* 195 */ { 2, TF, sys_lstat64, "lstat64" }, /* 196 */ { 2, TD, sys_fstat64, "fstat64" }, /* 197 */ diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h index f9bb61df..e104a8d3 100644 --- a/linux/sh64/syscallent.h +++ b/linux/sh64/syscallent.h @@ -219,8 +219,8 @@ { 0, TP, sys_vfork, "vfork" }, /* 190 */ { 2, 0, printargs, "getrlimit" }, /* 191 */ { 6, TD|TM, sys_mmap_4koff, "mmap2" }, /* 192 */ - { 2, TF, sys_truncate64, "truncate64" }, /* 193 */ - { 2, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_truncate, "truncate64" }, /* 193 */ + { 2, TD, sys_ftruncate, "ftruncate64" }, /* 194 */ { 2, TF, sys_stat64, "stat64" }, /* 195 */ { 2, TF, sys_lstat64, "lstat64" }, /* 196 */ { 2, TD, sys_fstat64, "fstat64" }, /* 197 */ diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h index 1a34d433..de464807 100644 --- a/linux/sparc/syscallent.h +++ b/linux/sparc/syscallent.h @@ -82,7 +82,7 @@ { 0, 0, sys_getpgrp, "getpgrp" }, /* 81 */ { 2, 0, sys_setgroups32,"setgroups32" }, /* 82 */ { 3, 0, sys_setitimer, "setitimer" }, /* 83 */ - { 2, TD, sys_ftruncate, "ftruncate64" }, /* 84 */ + { 3, TD, sys_ftruncate64,"ftruncate64" }, /* 84 */ { 2, TF, sys_swapon, "swapon" }, /* 85 */ { 2, 0, sys_getitimer, "getitimer" }, /* 86 */ { 1, 0, sys_setuid, "setuid32" }, /* 87 */ diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h index acaccbd4..afa58c82 100644 --- a/linux/xtensa/syscallent.h +++ b/linux/xtensa/syscallent.h @@ -21,8 +21,8 @@ { 3, TD, sys_writev, "writev" }, /* 25 */ { 1, TD, sys_fsync, "fsync" }, /* 26 */ { 1, TD, sys_fdatasync, "fdatasync" }, /* 27 */ - { 2, TF, sys_truncate64, "truncate64" }, /* 28 */ - { 2, TD, sys_ftruncate64, "ftruncate64" }, /* 29 */ + { 4, TF, sys_truncate64, "truncate64" }, /* 28 */ + { 4, TD, sys_ftruncate64, "ftruncate64" }, /* 29 */ { 6, TD, sys_pread, "pread64" }, /* 30 */ { 6, TD, sys_pwrite, "pwrite64" }, /* 31 */ { 2, TF, sys_link, "link" }, /* 32 */