comparison src/os/unix/ngx_socket.h @ 58:6b13b1cadabe

nginx-0.0.1-2003-01-30-21:21:39 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 30 Jan 2003 18:21:39 +0000
parents f323b4f74e4a
children e8cdc2989cee
comparison
equal deleted inserted replaced
57:a499e0d1f16e 58:6b13b1cadabe
5 #include <ngx_config.h> 5 #include <ngx_config.h>
6 6
7 #define NGX_WRITE_SHUTDOWN SHUT_WR 7 #define NGX_WRITE_SHUTDOWN SHUT_WR
8 8
9 typedef int ngx_socket_t; 9 typedef int ngx_socket_t;
10
11 #define ngx_init_sockets
12 10
13 #define ngx_socket(af, type, proto, flags) socket(af, type, proto) 11 #define ngx_socket(af, type, proto, flags) socket(af, type, proto)
14 #define ngx_socket_n "socket()" 12 #define ngx_socket_n "socket()"
15 13
16 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK) 14 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK)