comparison src/core/ngx_hunk.h @ 170:c42be4185301

nginx-0.0.1-2003-11-03-01:56:18 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 02 Nov 2003 22:56:18 +0000
parents 8aef3c72e5da
children 2357fa41738a
comparison
equal deleted inserted replaced
169:edf29bb717da 170:c42be4185301
18 #define NGX_HUNK_MMAP 0x0008 18 #define NGX_HUNK_MMAP 0x0008
19 19
20 #define NGX_HUNK_RECYCLED 0x0010 20 #define NGX_HUNK_RECYCLED 0x0010
21 21
22 /* the hunk is in file */ 22 /* the hunk is in file */
23 #define NGX_HUNK_FILE 0x0100 23 #define NGX_HUNK_FILE 0x0020
24 24
25 #define NGX_HUNK_STORAGE (NGX_HUNK_IN_MEMORY \ 25 #define NGX_HUNK_STORAGE (NGX_HUNK_IN_MEMORY \
26 |NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP \ 26 |NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP \
27 |NGX_HUNK_RECYCLED|NGX_HUNK_FILE) 27 |NGX_HUNK_RECYCLED|NGX_HUNK_FILE)
28 28
29 /* hunk flags */ 29 /* hunk flags */
30 30
31 /* in thread state flush means to write the hunk completely before return */ 31 /* in thread state flush means to write the hunk completely before return */
32 /* in event state flush means to start to write the hunk */ 32 /* in event state flush means to start to write the hunk */
33 #define NGX_HUNK_FLUSH 0x1000 33 #define NGX_HUNK_FLUSH 0x0100
34 /* last hunk */ 34 /* last hunk */
35 #define NGX_HUNK_LAST 0x2000 35 #define NGX_HUNK_LAST 0x0200
36
37
38 #define NGX_HUNK_PREREAD 0x2000
36 #define NGX_HUNK_LAST_SHADOW 0x4000 39 #define NGX_HUNK_LAST_SHADOW 0x4000
37 #define NGX_HUNK_TEMP_FILE 0x8000 40 #define NGX_HUNK_TEMP_FILE 0x8000
38 41
39 42
40 typedef void * ngx_hunk_tag_t; 43 typedef void * ngx_hunk_tag_t;