]> granicus.if.org Git - strace/commitdiff
ftruncate64, truncate64: fix number of syscall arguments
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 08:47:46 +0000 (08:47 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 09:43:53 +0000 (09:43 +0000)
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.

linux/or1k/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/xtensa/syscallent.h

index 4b59f750257cda44af9b013d62662c93ada35b6c..a5987430d4d3a2731afebde924c2822dcb0bb6b5 100644 (file)
@@ -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 */
index bacd5d592c2f92262c7526aa4977ed9ffb2c2c89..f9de88203f738d38f59f4f4c0b08cfc0786f1ec0 100644 (file)
        { 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 */
index f9bb61df0711207f6700fdd7a031429b41ca927d..e104a8d36557b0368d2188de6d7d58b6799d6baa 100644 (file)
        { 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 */
index 1a34d4330b32367fde17d73dcfbf7512b6b1e5e4..de4648071c189562e7441b4986624141a403561b 100644 (file)
@@ -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 */
index acaccbd42cc177ee217aa586c13cd5f981627f20..afa58c82106dde8205f57a5d88be36e5f091f2cd 100644 (file)
@@ -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 */