comparison src/os/unix/ngx_os.h @ 469:2ff194b74f1e release-0.1.9

nginx-0.1.9-RELEASE import *) Bugfix: the proxied request was sent without arguments if the request contains "//", "/./", "/../" or "%XX". *) Bugfix: the large compressed responses may be transferred not completely. *) Bugfix: the files bigger than 2G was not transferred on Linux that does not support sendfile64(). *) Bugfix: while the build configuration on Linux the --with-poll_module parameter was required; the bug had appeared in 0.1.8.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Nov 2004 16:17:31 +0000
parents 295d97d70c69
children 8e8f3af115b5
comparison
equal deleted inserted replaced
468:1a67596d0349 469:2ff194b74f1e
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 14
15 #define NGX_IO_SENDFILE 1 15 #define NGX_IO_SENDFILE 1
16 #define NGX_IO_ZEROCOPY 2 16 #define NGX_IO_ZEROCOPY 2
17
18 #if (HAVE_SENDFILE)
19 #define NGX_HAVE_SENDFILE NGX_IO_SENDFILE
20 #else
21 #define NGX_HAVE_SENDFILE 0
22 #endif
23
24 #if (HAVE_ZEROCOPY)
25 #define NGX_HAVE_ZEROCOPY NGX_IO_ZEROCOPY
26 #else
27 #define NGX_HAVE_ZEROCOPY 0
28 #endif
29 17
30 18
31 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); 19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
32 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in); 20 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in);
33 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); 21 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);