You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include/io
Vladimir Sementsov-Ogievskiy d14c8cc69d io/channel-socket: rework qio_channel_socket_copy_fds()
We want to switch from qemu_socket_set_block() to newer
qemu_set_blocking(), which provides return status of operation,
to handle errors.

Still, we want to keep qio_channel_socket_readv() interface clean,
as currently it allocate @fds only on success.

So, in case of error, we should close all incoming fds and keep
user's @fds untouched or zero.

Let's make separate functions qio_channel_handle_fds() and
qio_channel_cleanup_fds(), to achieve what we want.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
1 month ago
..
channel-buffer.h io: Fix Lesser GPL version number 5 years ago
channel-command.h io/command: implement support for win32 3 years ago
channel-file.h io: Introduce qio_channel_file_new_dupfd 2 years ago
channel-null.h io: add a QIOChannelNull equivalent to /dev/null 3 years ago
channel-socket.h io: Add helper for setting socket send buffer size 5 months ago
channel-tls.h io: tls: Add qio_channel_tls_bye 8 months ago
channel-util.h io: follow coroutine AioContext in qio_channel_yield() 2 years ago
channel-watch.h io: Fix Lesser GPL version number 5 years ago
channel-websock.h io: Fix Lesser GPL version number 5 years ago
channel.h io/channel-socket: rework qio_channel_socket_copy_fds() 1 month ago
dns-resolver.h io: Fix Lesser GPL version number 5 years ago
net-listener.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 5 years ago
task.h Rename "QEMU global mutex" to "BQL" in comments and docs 2 years ago