Mercurial > hg > nginx
comparison src/os/unix/ngx_socket.c @ 346:55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 06 Jun 2004 19:49:18 +0000 |
parents | b6793bc5034b |
children | eaf1f651cf86 |
comparison
equal
deleted
inserted
replaced
345:fade4edd61f8 | 346:55e496a8ece3 |
---|---|
7 * ioctl(FIONBIO) sets a blocking mode with the single syscall | 7 * ioctl(FIONBIO) sets a blocking mode with the single syscall |
8 * while fcntl(F_SETFL, ~O_NONBLOCK) needs to learn before | 8 * while fcntl(F_SETFL, ~O_NONBLOCK) needs to learn before |
9 * a previous state using fcntl(F_GETFL). | 9 * a previous state using fcntl(F_GETFL). |
10 * | 10 * |
11 * ioctl() and fcntl() are syscalls on at least FreeBSD 2.x, Linux 2.2 | 11 * ioctl() and fcntl() are syscalls on at least FreeBSD 2.x, Linux 2.2 |
12 * and Solaris 7 | 12 * and Solaris 7. |
13 * | |
14 * ioctl() in Linux 2.4 and 2.6 uses BKL, however fcntl(F_SETFL) uses it too. | |
13 */ | 15 */ |
14 | 16 |
15 | 17 |
16 #if (HAVE_FIONBIO) | 18 #if (HAVE_FIONBIO) |
17 | 19 |