From 1342d9cc29de7b6509a44a49cd66d1038d1e6d26 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 9 Oct 2003 07:00:45 +0000 Subject: nginx-0.0.1-2003-10-09-11:00:45 import --- src/core/ngx_hunk.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core') 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, -- cgit