Fix preadv/pwritev offset decoding on bigendian architectures
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 7 Aug 2014 00:07:28 +0000 (00:07 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 7 Aug 2014 00:30:26 +0000 (00:30 +0000)
commit3c49b02e98af0aabfffd20fd8b34b1f71b8cffb9
tree979622f53ab466210b19613b6ccc7936d2f62137
parent15114ec215f889b71fd1f9ed2012b8deeb33a55c
Fix preadv/pwritev offset decoding on bigendian architectures

This partially reverts commit 7845a42b39e59e904d01e75e21f7bc7eb6462560.

* util.c (printllval): Remove align argument.
* defs.h (printllval): Update prototype.
(printllval_aligned, printllval_unaligned): Remove.
* 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_aligned call with printllval.
* io.c (sys_pread, sys_pwrite): Likewise.
(print_llu_from_low_high_val): New function.
(sys_preadv, sys_pwritev): Use it instead of printllval_unaligned.
defs.h
file.c
io.c
util.c