comparison src/os/unix/ngx_socket.h @ 6:669801705ab1

nginx-0.0.1-2002-08-26-19:18:19 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Aug 2002 15:18:19 +0000
parents 34a521b1a148
children f323b4f74e4a
comparison
equal deleted inserted replaced
5:62b1a364857c 6:669801705ab1
7 7
8 typedef int ngx_socket_t; 8 typedef int ngx_socket_t;
9 9
10 #define ngx_init_sockets 10 #define ngx_init_sockets
11 11
12 #define ngx_socket(af, type, proto, flags) socket(af, type, proto)
13 #define ngx_socket_n "socket()"
14
12 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK) 15 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK)
13 #define ngx_nonblocking_n "fcntl (O_NONBLOCK)" 16 #define ngx_nonblocking_n "fcntl(O_NONBLOCK)"
14 17
15 #define ngx_close_socket close 18 #define ngx_close_socket close
16 #define ngx_close_socket_n "close" 19 #define ngx_close_socket_n "close()"
17 20
18 21
19 #endif /* _NGX_SOCKET_H_INCLUDED_ */ 22 #endif /* _NGX_SOCKET_H_INCLUDED_ */