]> granicus.if.org Git - strace/commit
Fix preadv/pwritev offset decoding
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 17 Apr 2014 13:32:47 +0000 (13:32 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 17 Apr 2014 13:39:49 +0000 (13:39 +0000)
commit7845a42b39e59e904d01e75e21f7bc7eb6462560
tree048e6aa057d57df773be7b0f9536960323af95bf
parentcc3d59199d80588a53ee353da5d69726bd093c51
Fix preadv/pwritev offset decoding

* util.c (printllval): Add align argument.
* defs.h (printllval): Update prototype.
(printllval_aligned, printllval_unaligned): New macros.
* file.c (sys_readahead, sys_truncate64, sys_ftruncate64, sys_fadvise64,
sys_fadvise64_64, sys_sync_file_range, sys_sync_file_range2,
sys_fallocate): Replace printllval call with printllval_aligned.
* io.c (sys_pread, sys_pwrite): Likewise.
(sys_preadv, sys_pwritev): Replace printllval call with
printllval_unaligned.
* linux/arm/syscallent.h: Set the number of preadv and pwritev
arguments to 5.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.

Reported-by: Dima Kogan <dima@secretsauce.net>
defs.h
file.c
io.c
linux/arm/syscallent.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/sh/syscallent.h
linux/xtensa/syscallent.h
util.c