summaryrefslogtreecommitdiffstats
path: root/qemu-common.h
diff options
context:
space:
mode:
authorKirill A. Shutemov2010-01-20 00:56:08 +0100
committerAnthony Liguori2010-01-26 21:59:19 +0100
commit7b5f699dbdf64cf9657e2955bccccc173d9b09fc (patch)
tree9f714a9eb0cc512bb871e18099140051ffe50607 /qemu-common.h
parentqcow2: Don't ignore qcow2_alloc_clusters return value (diff)
downloadqemu-7b5f699dbdf64cf9657e2955bccccc173d9b09fc.tar.gz
qemu-7b5f699dbdf64cf9657e2955bccccc173d9b09fc.tar.xz
qemu-7b5f699dbdf64cf9657e2955bccccc173d9b09fc.zip
Introduce qemu_write_full()
A variant of write(2) which handles partial write. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index d96060adbf..a2731e1514 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -161,6 +161,7 @@ void qemu_mutex_lock_iothread(void);
void qemu_mutex_unlock_iothread(void);
int qemu_open(const char *name, int flags, ...);
+ssize_t qemu_write_full(int fd, const void *buf, size_t count);
void qemu_set_cloexec(int fd);
#ifndef _WIN32