qemu-cr16/chardev
Vladimir Sementsov-Ogievskiy 1ed8903916 treewide: handle result of qio_channel_set_blocking()
Currently, we just always pass NULL as errp argument. That doesn't
look good.

Some realizations of interface may actually report errors.
Channel-socket realization actually either ignore or crash on
errors, but we are going to straighten it out to always reporting
an errp in further commits.

So, convert all callers to either handle the error (where environment
allows) or explicitly use &error_abort.

Take also a chance to change the return value to more convenient
bool (keeping also in mind, that underlying realizations may
return -1 on failure, not -errno).

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[DB: fix return type mismatch in TLS/websocket channel
     impls for qio_channel_set_blocking]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-09-19 12:46:07 +01:00
..
baum.c chardev/baum: Fix compiler warning for Windows builds 2025-09-03 10:56:11 +03:00
char-console.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-fd.c chardev/char-fd: skip automatic zero-init of large array 2025-06-12 13:39:08 -04:00
char-fe.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
char-file.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
char-hub.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-io.c Revert "qemu-char: do not operate on sources from finalize callbacks" 2024-07-16 10:45:06 +02:00
char-mux.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-null.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-parallel.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-pipe.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-pty.c chardev/char-pty: skip automatic zero-init of large array 2025-06-12 13:39:08 -04:00
char-ringbuf.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-serial.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-socket.c treewide: handle result of qio_channel_set_blocking() 2025-09-19 12:46:07 +01:00
char-stdio.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-udp.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-win-stdio.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char-win.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
char.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
chardev-internal.h chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
meson.build chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
msmouse.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spice.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
testdev.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
trace-events chardev: add tracing of socket error conditions 2024-07-24 10:39:10 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
wctablet.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00