diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-04-04 17:30:41 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-04-09 18:57:49 -0700 |
commit | 9ac225171c9d6b2a1cba35a94ae7eeaa0106cf7d (patch) | |
tree | e12d19b6f5c744c80813298ba5154fae4c83fe5f /linux-user/ioctls.h | |
parent | 9abfc88af3ffd3b33c7fab4471da86462ee71d95 (diff) | |
download | qemu-9ac225171c9d6b2a1cba35a94ae7eeaa0106cf7d.zip qemu-9ac225171c9d6b2a1cba35a94ae7eeaa0106cf7d.tar.gz qemu-9ac225171c9d6b2a1cba35a94ae7eeaa0106cf7d.tar.bz2 |
linux-user: fix preadv/pwritev offsets
preadv/pwritev accept low and high parts of file offset in two separate
parameters. When host bitness doesn't match guest bitness these parts
must be appropriately recombined.
Introduce target_to_host_low_high that does this recombination and use
it in preadv/pwritev syscalls.
This fixes glibc testsuite test misc/tst-preadvwritev64.
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'linux-user/ioctls.h')
0 files changed, 0 insertions, 0 deletions