diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-27 10:10:43 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-04-02 11:47:37 -0400 |
commit | f9e8cacc5557e4372401da74141f833fcacda038 (patch) | |
tree | 59218a3c4167dd06d03a7a42388810efb3049c0d /util/oslib-win32.c | |
parent | 5d45de9796539f95eb6b1201588362981f8cb2d4 (diff) |
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>
Diffstat (limited to 'util/oslib-win32.c')
-rw-r--r-- | util/oslib-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c index 640194c0cf..dcfa0c2918 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -100,14 +100,14 @@ struct tm *localtime_r(const time_t *timep, struct tm *result) return p; } -void socket_set_block(int fd) +void qemu_set_block(int fd) { unsigned long opt = 0; WSAEventSelect(fd, NULL, 0); ioctlsocket(fd, FIONBIO, &opt); } -void socket_set_nonblock(int fd) +void qemu_set_nonblock(int fd) { unsigned long opt = 1; ioctlsocket(fd, FIONBIO, &opt); |