]> git.proxmox.com Git - mirror_qemu.git/commit - util/vhost-user-server.c
util: rename qemu_*block() socket functions
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 25 Apr 2022 13:33:47 +0000 (17:33 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 3 May 2022 11:53:20 +0000 (15:53 +0400)
commitff5927baa7ffb9c97873a071f6a8d85a3584182b
treefac232e795ec7f76ad8ca15a59a7d8b908e7a225
parentb2670d1f9976260191ebccecc822fea7114fd448
util: rename qemu_*block() socket functions

The qemu_*block() functions are meant to be be used with sockets (the
win32 implementation expects SOCKET)

Over time, those functions where used with Win32 SOCKET or
file-descriptors interchangeably. But for portability, they must only be
used with socket-like file-descriptors. FDs can use
g_unix_set_fd_nonblocking() instead.

Rename the functions with "socket" in the name to prevent bad usages.

This is effectively reverting commit f9e8cacc5557e43 ("oslib-posix:
rename socket_set_nonblock() to qemu_set_nonblock()").

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
14 files changed:
chardev/char-socket.c
contrib/ivshmem-server/ivshmem-server.c
hw/hyperv/syndbg.c
hw/virtio/vhost-user.c
include/qemu/sockets.h
io/channel-socket.c
net/l2tpv3.c
net/socket.c
qga/channel-posix.c
tests/unit/socket-helpers.c
tests/unit/test-crypto-tlssession.c
util/oslib-posix.c
util/oslib-win32.c
util/vhost-user-server.c