comparison src/os/unix/ngx_socket.c @ 441:da8c5707af39

nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
author Igor Sysoev <igor@sysoev.ru>
date Tue, 28 Sep 2004 08:34:51 +0000
parents eaf1f651cf86
children 42d11f017717
comparison
equal deleted inserted replaced
440:f390d1775430 441:da8c5707af39
1
2 /*
3 * Copyright (C) 2002-2004 Igor Sysoev
4 */
5
1 6
2 #include <ngx_config.h> 7 #include <ngx_config.h>
3 #include <ngx_core.h> 8 #include <ngx_core.h>
4 9
5 10
6 /* 11 /*
7 * ioctl(FIONBIO) sets a blocking mode with the single syscall 12 * ioctl(FIONBIO) sets a blocking mode with the single syscall
8 * while fcntl(F_SETFL, ~O_NONBLOCK) needs to learn before 13 * while fcntl(F_SETFL, ~O_NONBLOCK) needs to learn before
9 * a previous state using fcntl(F_GETFL). 14 * the previous state using fcntl(F_GETFL).
10 * 15 *
11 * ioctl() and fcntl() are syscalls on at least FreeBSD 2.x, Linux 2.2 16 * ioctl() and fcntl() are syscalls on at least FreeBSD 2.x, Linux 2.2
12 * and Solaris 7. 17 * and Solaris 7.
13 * 18 *
14 * 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.