Mercurial > hg > nginx-vendor-current
comparison src/os/unix/ngx_socket.h @ 194:003bd800ec2a NGINX_0_3_44
nginx 0.3.44
*) Feature: the "wait" parameter in the "include" SSI command.
*) Feature: the Ukrainian and Byelorussian characters were added to
koi-win conversion table.
*) Bugfix: in the SSI.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 04 May 2006 00:00:00 +0400 |
parents | 6f8b0dc0f8dd |
children | d0f7a625f27c |
comparison
equal
deleted
inserted
replaced
193:2a1394604ae9 | 194:003bd800ec2a |
---|---|
27 #define ngx_nonblocking_n "ioctl(FIONBIO)" | 27 #define ngx_nonblocking_n "ioctl(FIONBIO)" |
28 #define ngx_blocking_n "ioctl(!FIONBIO)" | 28 #define ngx_blocking_n "ioctl(!FIONBIO)" |
29 | 29 |
30 #else | 30 #else |
31 | 31 |
32 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK) | 32 #define ngx_nonblocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK) |
33 #define ngx_nonblocking_n "fcntl(O_NONBLOCK)" | 33 #define ngx_nonblocking_n "fcntl(O_NONBLOCK)" |
34 | |
35 #define ngx_blocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) & ~O_NONBLOCK) | |
36 #define ngx_blocking_n "fcntl(!O_NONBLOCK)" | |
34 | 37 |
35 #endif | 38 #endif |
36 | 39 |
37 int ngx_tcp_nopush(ngx_socket_t s); | 40 int ngx_tcp_nopush(ngx_socket_t s); |
38 int ngx_tcp_push(ngx_socket_t s); | 41 int ngx_tcp_push(ngx_socket_t s); |