mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
oslib-posix: rename socket_set_nonblock() to qemu_set_nonblock()
The fcntl(fd, F_SETFL, O_NONBLOCK) flag is not specific to sockets. Rename to qemu_set_nonblock() just like qemu_set_cloexec(). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
5d45de9796
commit
f9e8cacc55
14 changed files with 27 additions and 27 deletions
|
@ -308,7 +308,7 @@ static int net_socket_mcast_create(struct sockaddr_in *mcastaddr, struct in_addr
|
|||
}
|
||||
}
|
||||
|
||||
socket_set_nonblock(fd);
|
||||
qemu_set_nonblock(fd);
|
||||
return fd;
|
||||
fail:
|
||||
if (fd >= 0)
|
||||
|
@ -519,7 +519,7 @@ static int net_socket_listen_init(NetClientState *peer,
|
|||
perror("socket");
|
||||
return -1;
|
||||
}
|
||||
socket_set_nonblock(fd);
|
||||
qemu_set_nonblock(fd);
|
||||
|
||||
/* allow fast reuse */
|
||||
val = 1;
|
||||
|
@ -565,7 +565,7 @@ static int net_socket_connect_init(NetClientState *peer,
|
|||
perror("socket");
|
||||
return -1;
|
||||
}
|
||||
socket_set_nonblock(fd);
|
||||
qemu_set_nonblock(fd);
|
||||
|
||||
connected = 0;
|
||||
for(;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue