comparison src/os/unix/ngx_socket.c @ 707:926db7d6748a

fix comment
author Igor Sysoev <igor@sysoev.ru>
date Fri, 22 Sep 2006 12:19:02 +0000
parents 4946078f0a79
children f8d6894f0990
comparison
equal deleted inserted replaced
706:e1d119bf5033 707:926db7d6748a
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9 9
10 10
11 /* 11 /*
12 * ioctl(FIONBIO) sets a blocking mode with the single syscall 12 * ioctl(FIONBIO) sets a non-blocking mode with the single syscall
13 * while fcntl(F_SETFL, !O_NONBLOCK) needs to learn before 13 * while fcntl(F_SETFL, O_NONBLOCK) needs to learn the current state
14 * the previous state using fcntl(F_GETFL). 14 * using fcntl(F_GETFL).
15 * 15 *
16 * ioctl() and fcntl() are syscalls at least in FreeBSD 2.x, Linux 2.2 16 * ioctl() and fcntl() are syscalls at least in FreeBSD 2.x, Linux 2.2
17 * and Solaris 7. 17 * and Solaris 7.
18 * 18 *
19 * ioctl() in Linux 2.4 and 2.6 uses BKL, however, fcntl(F_SETFL) uses it too. 19 * ioctl() in Linux 2.4 and 2.6 uses BKL, however, fcntl(F_SETFL) uses it too.