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:
Stefan Hajnoczi 2013-03-27 10:10:43 +01:00 committed by Luiz Capitulino
parent 5d45de9796
commit f9e8cacc55
14 changed files with 27 additions and 27 deletions

View file

@ -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(;;) {