Mercurial > hg > nginx
comparison src/core/ngx_hunk.h @ 74:17ab1af8c3dd
nginx-0.0.1-2003-04-11-20:01:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 11 Apr 2003 16:01:14 +0000 |
parents | 4534060fde92 |
children | 869b10be682f |
comparison
equal
deleted
inserted
replaced
73:4534060fde92 | 74:17ab1af8c3dd |
---|---|
32 /* last hunk */ | 32 /* last hunk */ |
33 #define NGX_HUNK_LAST 0x2000 | 33 #define NGX_HUNK_LAST 0x2000 |
34 | 34 |
35 | 35 |
36 | 36 |
37 | |
38 typedef struct ngx_hunk_s ngx_hunk_t; | 37 typedef struct ngx_hunk_s ngx_hunk_t; |
39 struct ngx_hunk_s { | 38 struct ngx_hunk_s { |
40 #if 0 | |
41 union { | |
42 char *mem; /* start of current data */ | |
43 off_t file; | |
44 } pos; | |
45 union { | |
46 char *mem; /* end of current data */ | |
47 off_t file; | |
48 } last; | |
49 #endif | |
50 | |
51 char *pos; | 39 char *pos; |
52 char *last; | 40 char *last; |
53 off_t file_pos; | 41 off_t file_pos; |
54 off_t file_last; | 42 off_t file_last; |
55 | 43 |
58 char *end; /* end of hunk */ | 46 char *end; /* end of hunk */ |
59 char *pre_start; /* start of pre-allocated hunk */ | 47 char *pre_start; /* start of pre-allocated hunk */ |
60 char *post_end; /* end of post-allocated hunk */ | 48 char *post_end; /* end of post-allocated hunk */ |
61 int tag; | 49 int tag; |
62 ngx_file_t *file; | 50 ngx_file_t *file; |
51 ngx_hunk_t *shadow; | |
63 }; | 52 }; |
64 | |
65 | 53 |
66 | 54 |
67 typedef struct ngx_chain_s ngx_chain_t; | 55 typedef struct ngx_chain_s ngx_chain_t; |
68 struct ngx_chain_s { | 56 struct ngx_chain_s { |
69 ngx_hunk_t *hunk; | 57 ngx_hunk_t *hunk; |