aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-12-26 16:22:54 +0300
committerValentin Bartenev <vbart@nginx.com>2014-12-26 16:22:54 +0300
commita54e37eddacacb5c3aedad898b431705948eb80c (patch)
tree74dc9f8efe1b4fdcc38a156e22113e56900e5c7f /src/core/ngx_file.h
parentc07bebdcd116d04c96c71126b86a5ba13737db78 (diff)
downloadnginx-a54e37eddacacb5c3aedad898b431705948eb80c.tar.gz
nginx-a54e37eddacacb5c3aedad898b431705948eb80c.zip
Core: added prefix-based temporary files.
Now, if the "path" parameter is NULL, ngx_create_temp_file() will use file->name as a predefined file path prefix.
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r--src/core/ngx_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h
index 3ea6c28c8..b456f1da0 100644
--- a/src/core/ngx_file.h
+++ b/src/core/ngx_file.h
@@ -71,6 +71,7 @@ typedef struct {
unsigned log_level:8;
unsigned persistent:1;
unsigned clean:1;
+ unsigned prefix:1;
} ngx_temp_file_t;