comparison src/core/ngx_output_chain.c @ 356:2e3cbc1bbe3c

nginx-0.0.7-2004-06-16-19:32:11 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 16 Jun 2004 15:32:11 +0000
parents e366ba5db8f8
children 7650aea1816f
comparison
equal deleted inserted replaced
355:0fb6c53fb135 356:2e3cbc1bbe3c
5 5
6 6
7 #define NGX_NONE 1 7 #define NGX_NONE 1
8 8
9 9
10 ngx_inline static int ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx, 10 ngx_inline static ngx_int_t
11 ngx_buf_t *buf); 11 ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf);
12 static ngx_int_t ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src, 12 static ngx_int_t ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src,
13 ngx_uint_t sendfile); 13 ngx_uint_t sendfile);
14 14
15 15
16 int ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in) 16 ngx_int_t ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in)
17 { 17 {
18 int rc, last; 18 int rc, last;
19 size_t size, bsize; 19 size_t size, bsize;
20 ngx_chain_t *cl, *out, **last_out; 20 ngx_chain_t *cl, *out, **last_out;
21 21
166 } 166 }
167 } 167 }
168 } 168 }
169 169
170 170
171 ngx_inline static int ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx, 171 ngx_inline static ngx_int_t
172 ngx_buf_t *buf) 172 ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf)
173 { 173 {
174 if (ngx_buf_special(buf)) { 174 if (ngx_buf_special(buf)) {
175 return 0; 175 return 0;
176 } 176 }
177 177