summaryrefslogtreecommitdiffstats
path: root/hw/vga-isa-mm.c
diff options
context:
space:
mode:
authorPeter Maydell2012-08-11 23:24:35 +0200
committerStefan Hajnoczi2012-08-15 16:21:33 +0200
commitbb9558679ffaae062ea26ef97d2273b148e9c515 (patch)
tree20374cfc720cd6fee4c9c17097d324fc27b6c6ce /hw/vga-isa-mm.c
parentframebuffer: Fix spelling in comment (leight -> height) (diff)
downloadqemu-bb9558679ffaae062ea26ef97d2273b148e9c515.tar.gz
qemu-bb9558679ffaae062ea26ef97d2273b148e9c515.tar.xz
qemu-bb9558679ffaae062ea26ef97d2273b148e9c515.zip
iov_send_recv(): Handle zero bytes case even if OS does not
POSIX allows sendmsg() and recvmsg() to fail EMSGSIZE if passed a zero msg.msg_iovlen (in particular the MacOS X implementation will do this). Handle the case where iov_send_recv() is passed a zero byte count explicitly, to avoid accidentally depending on the OS to treat zero msg_iovlen as a no-op. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/vga-isa-mm.c')
0 files changed, 0 insertions, 0 deletions