]> git.proxmox.com Git - mirror_qemu.git/blobdiff - io/channel-util.c
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / io / channel-util.c
index 0fb4bd08374898db422b5c6398ce594ca75b5e63..423d79845a20a4e534c109f78889623348e42cb2 100644 (file)
 #include "io/channel-socket.h"
 
 
-static bool fd_is_socket(int fd)
-{
-    int optval;
-    socklen_t optlen;
-    optlen = sizeof(optval);
-    return qemu_getsockopt(fd,
-                           SOL_SOCKET,
-                           SO_TYPE,
-                           (char *)&optval,
-                           &optlen) == 0;
-}
-
-
 QIOChannel *qio_channel_new_fd(int fd,
                                Error **errp)
 {