diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-09 07:00:45 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-09 07:00:45 +0000 |
commit | 1342d9cc29de7b6509a44a49cd66d1038d1e6d26 (patch) | |
tree | 618ccc0244627bece991abd6a49b354b417e1a21 /src/core/ngx_hunk.h | |
parent | 3ae32483cd9315aef5066e2a06411e9ffb8a5560 (diff) | |
download | nginx-1342d9cc29de7b6509a44a49cd66d1038d1e6d26.tar.gz nginx-1342d9cc29de7b6509a44a49cd66d1038d1e6d26.zip |
nginx-0.0.1-2003-10-09-11:00:45 import
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r-- | src/core/ngx_hunk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index 0d03164fc..ef47508bb 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -75,6 +75,14 @@ typedef struct { #define ngx_hunk_in_memory_only(h) \ ((h->type & (NGX_HUNK_IN_MEMORY|NGX_HUNK_FILE)) == NGX_HUNK_IN_MEMORY) +/* + ((h->type & (NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP|NGX_HUNK_FILE)) \ + == (h->type & (NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP))) + +*/ + +#define ngx_hunk_special(h) \ + (h->type == (h->type & (NGX_HUNK_FLUSH|NGX_HUNK_LAST))) ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size, |