]> granicus.if.org Git - strace/commit
Fix printing of negative offsets in preadv and pwritev syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 30 Mar 2016 03:54:21 +0000 (03:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 30 Mar 2016 03:54:21 +0000 (03:54 +0000)
commitd461151f2384834d9c6cc98dc7285f363a6186ed
tree1cfc2e0dca98b27e155bffdd6e9f5849712b465e
parent0a9d1947a7774902f7118e91f64a53056e01b8f7
Fix printing of negative offsets in preadv and pwritev syscalls

* io.c (print_llu_from_low_high_val): Rename to
print_lld_from_low_high_val, all callers changed.
Print value as a signed integer.
* tests/preadv.c: New file.
* tests/preadv.test: New test.
* tests/pwritev.c: New file.
* tests/pwritev.test: New test.
* tests/.gitignore: Add preadv and pwritev.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(preadv_CPPFLAGS, pwritev_CPPFLAGS): New variables.
(DECODER_TESTS): Add preadv.test and pwritev.test.
io.c
tests/.gitignore
tests/Makefile.am
tests/preadv.c [new file with mode: 0644]
tests/preadv.test [new file with mode: 0755]
tests/pwritev.c [new file with mode: 0644]
tests/pwritev.test [new file with mode: 0755]