mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
3e7896dec4
commit
1298cb6804
1 changed files with 5 additions and 0 deletions
5
osdep.c
5
osdep.c
|
|
@ -261,6 +261,11 @@ int qemu_open(const char *name, int flags, ...)
|
||||||
*
|
*
|
||||||
* Return the number of bytes transferred.
|
* Return the number of bytes transferred.
|
||||||
* Set errno if fewer than `count' bytes are written.
|
* 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)
|
ssize_t qemu_write_full(int fd, const void *buf, size_t count)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue