diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-03-20 09:48:44 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-03-20 14:38:20 +0000 |
commit | 2c42f32518e43b1e5ccb00c19010a799be6858d4 (patch) | |
tree | 65f5dea56e8ccc0f1ad8b99491e872e37c28739e /linux/aarch64 | |
parent | 3b211d8df0c28490b883fb521329faab384d4520 (diff) | |
download | strace-2c42f32518e43b1e5ccb00c19010a799be6858d4.tar.gz strace-2c42f32518e43b1e5ccb00c19010a799be6858d4.tar.bz2 strace-2c42f32518e43b1e5ccb00c19010a799be6858d4.tar.xz |
Do not use off_t in sendfile decoding
sendfile parser used to decode off_t* parameter as a pointer to host
off_t type. With this change, it is decoded as a pointer to target long
type.
* io.c (print_off_t): New function.
(sys_sendfile): Use it.
* linux/aarch64/syscallent1.h: Use sys_sendfile64 for sendfile decoding.
* linux/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Use sys_sendfile64 for sendfile64 decoding.
* linux/metag/syscallent.h: Correct sendfile syscall name.
* linux/or1k/syscallent.h: Likewise.
Diffstat (limited to 'linux/aarch64')
-rw-r--r-- | linux/aarch64/syscallent1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/aarch64/syscallent1.h b/linux/aarch64/syscallent1.h index 7b4413d..ef95e4f 100644 --- a/linux/aarch64/syscallent1.h +++ b/linux/aarch64/syscallent1.h @@ -69,7 +69,7 @@ { 5, TD, sys_pwrite, "pwrite64" }, /* 68 */ { 5, TD, sys_preadv, "preadv" }, /* 69 */ { 5, TD, sys_pwritev, "pwritev" }, /* 70 */ - { 4, TD|TN, sys_sendfile, "sendfile" }, /* 71 */ + { 4, TD|TN, sys_sendfile64, "sendfile" }, /* 71 */ { 6, TD, sys_pselect6, "pselect6" }, /* 72 */ { 5, TD, sys_ppoll, "ppoll" }, /* 73 */ { 4, TD|TS, sys_signalfd4, "signalfd4" }, /* 74 */ @@ -294,7 +294,7 @@ { 0, TD, sys_inotify_init, "inotify_init" }, /* 1043 */ { 1, TD, sys_eventfd, "eventfd" }, /* 1044 */ { 3, TD|TS, sys_signalfd, "signalfd" }, /* 1045 */ - { 4, TD|TN, sys_sendfile, "sendfile" }, /* 1046 */ + { 4, TD|TN, sys_sendfile64, "sendfile" }, /* 1046 */ { 2, TD, sys_ftruncate, "ftruncate" }, /* 1047 */ { 2, TF, sys_truncate, "truncate" }, /* 1048 */ { 2, TF, sys_stat, "stat" }, /* 1049 */ |