Mercurial > hg > nginx-ranges
comparison src/core/ngx_buf.h @ 144:e1c6ac408b68 NGINX_0_3_19
nginx 0.3.19
*) Feature: the "path" and "alias" directives support the variables.
*) Change: now the "valid_referers" directive again checks the URI part.
*) Bugfix: in SSI handling.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 28 Dec 2005 00:00:00 +0300 |
parents | 82d695e3d662 |
children | 79c5df00501e |
comparison
equal
deleted
inserted
replaced
143:c2fa0caa07f2 | 144:e1c6ac408b68 |
---|---|
103 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR | 103 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR |
104 | 104 |
105 | 105 |
106 #define ngx_buf_in_memory(b) (b->temporary || b->memory || b->mmap) | 106 #define ngx_buf_in_memory(b) (b->temporary || b->memory || b->mmap) |
107 #define ngx_buf_in_memory_only(b) (ngx_buf_in_memory(b) && !b->in_file) | 107 #define ngx_buf_in_memory_only(b) (ngx_buf_in_memory(b) && !b->in_file) |
108 | |
108 #define ngx_buf_special(b) \ | 109 #define ngx_buf_special(b) \ |
109 ((b->flush || b->last_buf || b->sync) \ | 110 ((b->flush || b->last_buf || b->sync) \ |
110 && !ngx_buf_in_memory(b) && !b->in_file) | 111 && !ngx_buf_in_memory(b) && !b->in_file) |
112 | |
113 #define ngx_buf_sync_only(b) \ | |
114 (b->sync \ | |
115 && !ngx_buf_in_memory(b) && !b->in_file && !b->flush && !b->last_buf) | |
111 | 116 |
112 #define ngx_buf_size(b) \ | 117 #define ngx_buf_size(b) \ |
113 (ngx_buf_in_memory(b) ? (off_t) (b->last - b->pos): \ | 118 (ngx_buf_in_memory(b) ? (off_t) (b->last - b->pos): \ |
114 (b->file_last - b->file_pos)) | 119 (b->file_last - b->file_pos)) |
115 | 120 |