From 2c42f32518e43b1e5ccb00c19010a799be6858d4 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 20 Mar 2013 09:48:44 +0000 Subject: 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. --- linux/aarch64/syscallent1.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/aarch64') 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 */ -- cgit v1.2.3