This is a little cleanup/consolidation for some iovec-related low-level routines in qemu.
First patch consolidates qemu_iovec_memset_skip() and qemu_iovec_memset(), which is just a little cleanup. The rest renames arguments of iovec I/O functions to be more understandable/obvious (see comments in patch 2), changes the types to be size_t instead of int, and consolidates send and recv paths into one (with one extra argument, do_send), since the code is exactly the same. This also lets us to use common read/write code paths in upper layer. Michael Tokarev (5): Consolidate qemu_iovec_memset{,_skip}() into single, simplified function change prototypes of qemu_sendv() and qemu_recvv() Export qemu_sendv_recvv() and use it in (inlined) qemu_sendv() and qemu_recvv() cleanup qemu_co_sendv(), qemu_co_recvv() and friends rewrite and comment qemu_sendv_recvv() block/qcow2.c | 4 +- block/qed.c | 4 +- cutils.c | 196 +++++++++++++++++++++------------------------------ linux-aio.c | 2 +- posix-aio-compat.c | 2 +- qemu-common.h | 55 ++++++++------ qemu-coroutine-io.c | 83 ++++++---------------- 7 files changed, 138 insertions(+), 208 deletions(-) -- 1.7.9.1