comparison src/os/unix/ngx_socket.h @ 93:738fe44c70d5

nginx-0.0.1-2003-05-21-17:28:21 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 May 2003 13:28:21 +0000
parents e8cdc2989cee
children 2e069b6e6920
comparison
equal deleted inserted replaced
92:19cc647ecd91 93:738fe44c70d5
1 #ifndef _NGX_SOCKET_H_INCLUDED_ 1 #ifndef _NGX_SOCKET_H_INCLUDED_
2 #define _NGX_SOCKET_H_INCLUDED_ 2 #define _NGX_SOCKET_H_INCLUDED_
3 3
4 4
5 #include <ngx_config.h> 5 #include <ngx_config.h>
6
7 #ifdef __FreeBSD__
8 #include <sys/ioctl.h>
9 #endif
10 6
11 7
12 #define NGX_WRITE_SHUTDOWN SHUT_WR 8 #define NGX_WRITE_SHUTDOWN SHUT_WR
13 9
14 typedef int ngx_socket_t; 10 typedef int ngx_socket_t;
15 11
16 #define ngx_socket(af, type, proto, flags) socket(af, type, proto) 12 #define ngx_socket(af, type, proto, flags) socket(af, type, proto)
17 #define ngx_socket_n "socket()" 13 #define ngx_socket_n "socket()"
18 14
19 15
20 #ifdef __FreeBSD__ 16 #if 1
21 17
22 int ngx_nonblocking(ngx_socket_t s); 18 int ngx_nonblocking(ngx_socket_t s);
23 int ngx_blocking(ngx_socket_t s); 19 int ngx_blocking(ngx_socket_t s);
24 20
25 #define ngx_nonblocking_n "ioctl(FIONBIO)" 21 #define ngx_nonblocking_n "ioctl(FIONBIO)"