diff options
author | Juan Quintela <quintela@redhat.com> | 2010-03-04 10:00:39 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-09 11:23:00 -0600 |
commit | 1298cb6804d6073ef3cb9c06e663ee59d06d92cc (patch) | |
tree | a8aded4a9cb2787123391332b161c8e04833fd13 /osdep.c | |
parent | 3e7896dec40ec5b9a51338fa636a58014d6d3f94 (diff) | |
download | qemu-1298cb6804d6073ef3cb9c06e663ee59d06d92cc.zip qemu-1298cb6804d6073ef3cb9c06e663ee59d06d92cc.tar.gz qemu-1298cb6804d6073ef3cb9c06e663ee59d06d92cc.tar.bz2 |
documentation: qemu_write_full don't work with non-blocking fd's
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'osdep.c')
-rw-r--r-- | osdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -261,6 +261,11 @@ int qemu_open(const char *name, int flags, ...) * * Return the number of bytes transferred. * Set errno if fewer than `count' bytes are written. + * + * This function don't work with non-blocking fd's. + * Any of the possibilities with non-bloking fd's is bad: + * - return a short write (then name is wrong) + * - busy wait adding (errno == EAGAIN) to the loop */ ssize_t qemu_write_full(int fd, const void *buf, size_t count) { |