]> git.proxmox.com Git - mirror_qemu.git/commit
osdep: implement qemu_socketpair() for win32
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Mar 2023 12:27:44 +0000 (16:27 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 13 Mar 2023 11:39:31 +0000 (15:39 +0400)
commit0a237f4de45b8addbc35a316ee1c0bc7a4887da7
tree48b007391e30cf0d2ad10dd4ead43003a6a3ebe1
parente387ef472f661657df67574e337f0558424f836a
osdep: implement qemu_socketpair() for win32

Manually implement a socketpair() function, using UNIX sockets and
simple peer credential checking.

QEMU doesn't make much use of socketpair, beside vhost-user which is not
available for win32 at this point. However, I intend to use it for
writing some new portable tests.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230306122751.2355515-5-marcandre.lureau@redhat.com>
include/qemu/sockets.h
util/oslib-win32.c