On 03.09.25 12:44, Vladimir Sementsov-Ogievskiy wrote:
And use it in io/channel-socket.c. This simplifies the following
commit, which will move this functionality from io/channel-socket.c
to the callers.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
---
  include/qemu/osdep.h |  7 +++++++
  io/channel-socket.c  | 24 +++++++++++++-----------
  util/oslib-posix.c   | 12 ++++++++++++
  3 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 1b38cb7e45..dde98d588c 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -689,6 +689,13 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t 
count)
  void qemu_set_cloexec(int fd);
  bool qemu_set_blocking(int fd, bool block, Error **errp);
+/*
+ * qemu_fds_set_blockinging:
+ * Call qemu_socket_set_block() on several fds.
+ * When @nfds = 0, does nothing, @fds is not touched.
+ */
+bool qemu_fds_set_blockinging(int *fds, int nfds, bool block, Error **errp);

Oops. s/inging/ing/ is needed.



--
Best regards,
Vladimir

Reply via email to