]> granicus.if.org Git - strace/commitdiff
fallocate: fix number of syscall arguments
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 08:18:44 +0000 (08:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 09:43:52 +0000 (09:43 +0000)
The number of fallocate arguments depends on architecture and
personality.  For 64bit and ilp32 it equals to 4,
for 32bit it equals to 6.

* linux/aarch64/syscallent1.h: Change the number of fallocate arguments
to 4.
* linux/alpha/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Set fallocate handler and flags.

linux/aarch64/syscallent1.h
linux/alpha/syscallent.h
linux/microblaze/syscallent.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/s390x/syscallent.h
linux/sh64/syscallent.h
linux/tile/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h

index a8d3a4384e31aa70ebf122826db9e1ffda67be28..461609cb7e34d6a6e46ccbb58d72500d2f54cfd1 100644 (file)
@@ -45,7 +45,7 @@
        { 2,    TD,     sys_fstatfs,                    "fstatfs64"                     }, /*   44 */
        { 2,    TF,     sys_truncate,                   "truncate64"                    }, /*   45 */
        { 2,    TD,     sys_ftruncate,                  "ftruncate64"                   }, /*   46 */
-       { 6,    TD,     sys_fallocate,                  "fallocate"                     }, /*   47 */
+       { 4,    TD,     sys_fallocate,                  "fallocate"                     }, /*   47 */
        { 3,    TD|TF,  sys_faccessat,                  "faccessat"                     }, /*   48 */
        { 1,    TF,     sys_chdir,                      "chdir"                         }, /*   49 */
        { 1,    TD,     sys_fchdir,                     "fchdir"                        }, /*   50 */
index 2b89492c0b5120872988139e6baaf589e031585e..9062e95f098241354b69b9996aea350c2e0e33df 100644 (file)
        { 4,    TD,     sys_timerfd,            "timerfd"               }, /* 477 */
        { 1,    TD,     sys_eventfd,            "eventfd"               }, /* 478 */
        { 5,    TN,     sys_recvmmsg,           "recvmmsg"              }, /* 479 */
-       { 6,    TD,     sys_fallocate,          "fallocate"             }, /* 480 */
+       { 4,    TD,     sys_fallocate,          "fallocate"             }, /* 480 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create"        }, /* 481 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime"       }, /* 482 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime"       }, /* 483 */
index bc286c8ae65151817dcf223b889121602a38addc..53b8877432a906d76f5761e4c03d24042b51b011 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 321 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create"        }, /* 322 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 323 */
-       { 6,    0,      printargs,              "fallocate"     }, /* 324 */
+       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 324 */
        { 5,    TI,     sys_semtimedop,         "semtimedop"    }, /* 325 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime"       }, /* 326 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime"       }, /* 327 */
index b3d3a3356ebe91ea4d88938701735d8759a30da7..d85c80d28e2ef723b0a275dcc968e22147a430f9 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 6280 */
        { 0,    0,      NULL,                   NULL            }, /* 6281 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 6282 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 6283 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 6283 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create" }, /* 6284 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime" }, /* 6285 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime" }, /* 6286 */
index b9101d3414246f2d27a8c024e37d695382096c0f..70d9364a8d8f84723689c8deb875e547c1214ddf 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 5276 */
        { 0,    0,      NULL,                   NULL            }, /* 5277 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 5278 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 5279 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 5279 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create" }, /* 5280 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime" }, /* 5281 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime" }, /* 5282 */
index 97658ae3e4ac112e850c46129c395a4aae0708a0..18636be64ebd2604e3fbcbe021bd4789977d2e5e 100644 (file)
        { 3,    0,      sys_getcpu,             "getcpu"        }, /* 311 */
        { 6,    TD,     sys_epoll_pwait,        "epoll_pwait"   }, /* 312 */
        { 2,    TF,     sys_utimes,             "utimes"        }, /* 313 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 314 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 314 */
        { 4,    TD|TF,  sys_utimensat,          "utimensat"     }, /* 315 */
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 316 */
        { 4,    TD,     sys_timerfd,            "timerfd"       }, /* 317 */
index 2ecacb196e8e23ac64ab8c5216c3562fa8674c73..f9bb61df0711207f6700fdd7a031429b41ca927d 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 349 */
        { 4,    TD,     sys_timerfd,            "timerfd"       }, /* 350 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 351 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 352 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 352 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime"}, /* 353 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime"}, /* 354 */
        { 4,    TD|TS,  sys_signalfd4,          "signalfd4"     }, /* 355 */
index 81aeb86b8bab2359b20a48aefc1cfae2438cb293..9a57e631a10266183c0b2a5f03b45c8949150bf2 100644 (file)
@@ -45,7 +45,7 @@
        { 2,    TD,     sys_fstatfs,                    "fstatfs"                       }, /*   44 */
        { 2,    TF,     sys_truncate,                   "truncate"                      }, /*   45 */
        { 2,    TD,     sys_ftruncate,                  "ftruncate"                     }, /*   46 */
-       { 6,    TD,     sys_fallocate,                  "fallocate"                     }, /*   47 */
+       { 4,    TD,     sys_fallocate,                  "fallocate"                     }, /*   47 */
        { 3,    TD|TF,  sys_faccessat,                  "faccessat"                     }, /*   48 */
        { 1,    TF,     sys_chdir,                      "chdir"                         }, /*   49 */
        { 1,    TD,     sys_fchdir,                     "fchdir"                        }, /*   50 */
index 6a840610ea112f88d39c1c0f7ee94ab12d8b490d..47b61084fc82b3c4fa07cff23396847f533bca8d 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 282 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create"}, /* 283 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 284 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 285 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 285 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime"}, /* 286 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime"}, /* 287 */
        { 4,    TN,     sys_accept4,            "accept4"       }, /* 288 */
index f6cf00f60153adeec9c3330cea8f758263d59dc5..e7ddba699b453b907ff4fe6de07505fa5456c22b 100644 (file)
        { 3,    TD|TS,  sys_signalfd,           "signalfd"      }, /* 282 */
        { 2,    TD,     sys_timerfd_create,     "timerfd_create"}, /* 283 */
        { 1,    TD,     sys_eventfd,            "eventfd"       }, /* 284 */
-       { 6,    TD,     sys_fallocate,          "fallocate"     }, /* 285 */
+       { 4,    TD,     sys_fallocate,          "fallocate"     }, /* 285 */
        { 4,    TD,     sys_timerfd_settime,    "timerfd_settime"}, /* 286 */
        { 2,    TD,     sys_timerfd_gettime,    "timerfd_gettime"}, /* 287 */
        { 4,    TN,     sys_accept4,            "accept4"       }, /* 288 */