util: drop qemu_socket_set_block()
Now it's unused. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
d14c8cc69d
commit
5d1d32ce9d
3 changed files with 0 additions and 14 deletions
|
|
@ -46,7 +46,6 @@ ssize_t qemu_send_full(int s, const void *buf, size_t count)
|
|||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
int socket_set_cork(int fd, int v);
|
||||
int socket_set_nodelay(int fd);
|
||||
void qemu_socket_set_block(int fd);
|
||||
int socket_set_fast_reuse(int fd);
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
|
|
@ -265,12 +265,6 @@ bool qemu_set_blocking(int fd, bool block, Error **errp)
|
|||
return true;
|
||||
}
|
||||
|
||||
void qemu_socket_set_block(int fd)
|
||||
{
|
||||
g_unix_set_fd_nonblocking(fd, false, NULL);
|
||||
}
|
||||
|
||||
|
||||
int socket_set_fast_reuse(int fd)
|
||||
{
|
||||
int val = 1, ret;
|
||||
|
|
|
|||
|
|
@ -195,13 +195,6 @@ bool qemu_set_blocking(int fd, bool block, Error **errp)
|
|||
return true;
|
||||
}
|
||||
|
||||
void qemu_socket_set_block(int fd)
|
||||
{
|
||||
unsigned long opt = 0;
|
||||
qemu_socket_unselect(fd, NULL);
|
||||
ioctlsocket(fd, FIONBIO, &opt);
|
||||
}
|
||||
|
||||
int socket_set_fast_reuse(int fd)
|
||||
{
|
||||
/* Enabling the reuse of an endpoint that was used by a socket still in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue