Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_socket.h @ 645:4946078f0a79 release-0.3.44
nginx-0.3.44-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Thu, 04 May 2006 15:32:46 +0000 |
parents | 2ff194b74f1e |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
644:610ff734a8cc | 645:4946078f0a79 |
---|---|
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); |