aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_buf.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-12-28 14:23:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-12-28 14:23:52 +0000
commit3ca233ee5cc0e00fc0d854f779ba5c78cf6b0cba (patch)
tree082164b43d8c98923c587524bddf19fdab2e13f0 /src/core/ngx_buf.h
parentb0b4973576eead9175faa089e66bdc33b698941d (diff)
downloadnginx-3ca233ee5cc0e00fc0d854f779ba5c78cf6b0cba.tar.gz
nginx-3ca233ee5cc0e00fc0d854f779ba5c78cf6b0cba.zip
nginx-0.3.19-RELEASE importrelease-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.
Diffstat (limited to 'src/core/ngx_buf.h')
-rw-r--r--src/core/ngx_buf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h
index 625db2a93..ec55ef3a0 100644
--- a/src/core/ngx_buf.h
+++ b/src/core/ngx_buf.h
@@ -105,10 +105,15 @@ typedef struct {
#define ngx_buf_in_memory(b) (b->temporary || b->memory || b->mmap)
#define ngx_buf_in_memory_only(b) (ngx_buf_in_memory(b) && !b->in_file)
+
#define ngx_buf_special(b) \
((b->flush || b->last_buf || b->sync) \
&& !ngx_buf_in_memory(b) && !b->in_file)
+#define ngx_buf_sync_only(b) \
+ (b->sync \
+ && !ngx_buf_in_memory(b) && !b->in_file && !b->flush && !b->last_buf)
+
#define ngx_buf_size(b) \
(ngx_buf_in_memory(b) ? (off_t) (b->last - b->pos): \
(b->file_last - b->file_pos))