Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_solaris_sendfilev_chain.c @ 134:1898c6d03d90 NGINX_0_3_14
nginx 0.3.14
*) Bugfix: in the 304 response the body was transferred; bug appeared
in 0.3.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 05 Dec 2005 00:00:00 +0300 |
parents | df17fbafec8f |
children | 36af50a5582d |
comparison
equal
deleted
inserted
replaced
133:e7ac35c352cb | 134:1898c6d03d90 |
---|---|
21 } sendfilevec_t; | 21 } sendfilevec_t; |
22 | 22 |
23 #define SFV_FD_SELF -2 | 23 #define SFV_FD_SELF -2 |
24 | 24 |
25 static ssize_t sendfilev(int fd, const struct sendfilevec *vec, | 25 static ssize_t sendfilev(int fd, const struct sendfilevec *vec, |
26 int sfvcnt, size_t *xferred) | 26 int sfvcnt, size_t *xferred) |
27 { | 27 { |
28 return -1; | 28 return -1; |
29 } | 29 } |
30 | 30 |
31 #endif | 31 #endif |
32 | 32 |
33 | 33 |
34 #define NGX_SENDFILEVECS 16 | 34 #define NGX_SENDFILEVECS 16 |
35 | 35 |
36 | 36 |
37 ngx_chain_t *ngx_solaris_sendfilev_chain(ngx_connection_t *c, ngx_chain_t *in, | 37 ngx_chain_t * |
38 off_t limit) | 38 ngx_solaris_sendfilev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) |
39 { | 39 { |
40 int fd; | 40 int fd; |
41 u_char *prev; | 41 u_char *prev; |
42 off_t size, send, prev_send, aligned, fprev; | 42 off_t size, send, prev_send, aligned, fprev; |
43 size_t sent; | 43 size_t sent; |