qemu/include/io
Marc-André Lureau ec5b6c9c5d io/command: implement support for win32
The initial implementation was changing the pipe state created by GLib
to PIPE_NOWAIT, but it turns out it doesn't work (read/write returns an
error). Since reading may return less than the requested amount, it
seems to be non-blocking already. However, the IO operation may block
until the FD is ready, I can't find good sources of information, to be
safe we can just poll for readiness before.

Alternatively, we could setup the FDs ourself, and use UNIX sockets on
Windows, which can be used in blocking/non-blocking mode. I haven't
tried it, as I am not sure it is necessary.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221006113657.2656108-6-marcandre.lureau@redhat.com>
2022-10-12 19:22:01 +04:00
..
channel-buffer.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel-command.h io/command: implement support for win32 2022-10-12 19:22:01 +04:00
channel-file.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel-null.h io: add a QIOChannelNull equivalent to /dev/null 2022-06-22 18:11:21 +01:00
channel-socket.h QIOChannelSocket: Implement io_writev zero copy flag & io_flush for CONFIG_LINUX 2022-05-16 13:56:24 +01:00
channel-tls.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel-util.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel-watch.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel-websock.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
channel.h QIOChannel: Add flags on io_writev and introduce io_flush callback 2022-05-16 13:56:24 +01:00
dns-resolver.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00
net-listener.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
task.h io: Fix Lesser GPL version number 2020-10-27 16:48:49 +01:00