sockets: move fd_is_socket() into common sockets code
commit58dc31f1a7dc6cd0f21bd51a34011ba366d36e53
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Dec 2017 12:55:20 +0000 (21 12:55 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 13 Mar 2018 18:06:06 +0000 (13 18:06 +0000)
tree9bd13cbc470c53428618096546c042590ebbdc2f
parentabd983c0e0beb4b15326e51a837e1b5177df0e08
sockets: move fd_is_socket() into common sockets code

The fd_is_socket() helper method is useful in a few places, so put it in
the common sockets code. Make the code more compact while moving it.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/qemu/sockets.h
io/channel-util.c
tests/.gitignore
tests/Makefile.include
tests/test-util-sockets.c [new file with mode: 0644]
util/qemu-sockets.c