summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-05-07 08:47:46 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-05-07 09:43:53 +0000
commit54aee7a38c0c70e468254e1d6c4ef61f36a128f8 (patch)
tree5a83722de782cc2a9eea996d93cc59bf86969544
parenteb1cc1568ccaac829436c70d1627a6b090df37eb (diff)
downloadstrace-54aee7a38c0c70e468254e1d6c4ef61f36a128f8.tar.gz
strace-54aee7a38c0c70e468254e1d6c4ef61f36a128f8.tar.bz2
strace-54aee7a38c0c70e468254e1d6c4ef61f36a128f8.tar.xz
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.
-rw-r--r--linux/or1k/syscallent.h4
-rw-r--r--linux/sh/syscallent.h4
-rw-r--r--linux/sh64/syscallent.h4
-rw-r--r--linux/sparc/syscallent.h2
-rw-r--r--linux/xtensa/syscallent.h4
5 files changed, 9 insertions, 9 deletions
diff --git a/linux/or1k/syscallent.h b/linux/or1k/syscallent.h
index 4b59f75..a598743 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 bacd5d5..f9de882 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 f9bb61d..e104a8d 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 1a34d43..de46480 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 acaccbd..afa58c8 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 */