Mercurial > hg > nginx
comparison src/os/unix/ngx_writev_chain.c @ 290:87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 07:10:12 +0000 |
parents | 70e1c7d2b83d |
children | 6bdf858bff8c |
comparison
equal
deleted
inserted
replaced
289:0750faf8d7e3 | 290:87e73f067470 |
---|---|
4 #include <ngx_event.h> | 4 #include <ngx_event.h> |
5 | 5 |
6 | 6 |
7 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) | 7 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) |
8 { | 8 { |
9 char *prev; | 9 u_char *prev; |
10 ssize_t n, size; | 10 ssize_t n, size; |
11 off_t sent; | 11 off_t sent; |
12 struct iovec *iov; | 12 struct iovec *iov; |
13 ngx_int_t eintr; | 13 ngx_int_t eintr; |
14 ngx_err_t err; | 14 ngx_err_t err; |
49 iov->iov_len += cl->hunk->last - cl->hunk->pos; | 49 iov->iov_len += cl->hunk->last - cl->hunk->pos; |
50 prev = cl->hunk->last; | 50 prev = cl->hunk->last; |
51 | 51 |
52 } else { | 52 } else { |
53 ngx_test_null(iov, ngx_push_array(&io), NGX_CHAIN_ERROR); | 53 ngx_test_null(iov, ngx_push_array(&io), NGX_CHAIN_ERROR); |
54 iov->iov_base = cl->hunk->pos; | 54 iov->iov_base = (void *) cl->hunk->pos; |
55 iov->iov_len = cl->hunk->last - cl->hunk->pos; | 55 iov->iov_len = cl->hunk->last - cl->hunk->pos; |
56 prev = cl->hunk->last; | 56 prev = cl->hunk->last; |
57 } | 57 } |
58 } | 58 } |
59 | 59 |