Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_socket.c @ 253:b6793bc5034b
nginx-0.0.2-2004-02-09-10:46:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Feb 2004 07:46:43 +0000 |
parents | 8dee38ea9117 |
children | 55e496a8ece3 |
comparison
equal
deleted
inserted
replaced
252:84b1c672ec5a | 253:b6793bc5034b |
---|---|
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 #include <ngx_core.h> | 3 #include <ngx_core.h> |
4 | 4 |
5 | 5 |
6 /* | 6 /* |
7 ioctl(FIONBIO) set blocking mode with one syscall only while | 7 * ioctl(FIONBIO) sets a blocking mode with the single syscall |
8 fcntl(F_SETFL, ~O_NONBLOCK) need to know previous state | 8 * while fcntl(F_SETFL, ~O_NONBLOCK) needs to learn before |
9 using fcntl(F_GETFL). | 9 * a previous state using fcntl(F_GETFL). |
10 | 10 * |
11 ioctl() and fcntl() are syscalls on FreeBSD, Solaris 7/8 and Linux | 11 * ioctl() and fcntl() are syscalls on at least FreeBSD 2.x, Linux 2.2 |
12 */ | 12 * and Solaris 7 |
13 */ | |
13 | 14 |
14 | 15 |
15 #if (HAVE_FIONBIO) | 16 #if (HAVE_FIONBIO) |
16 | 17 |
17 int ngx_nonblocking(ngx_socket_t s) | 18 int ngx_nonblocking(ngx_socket_t s) |