aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-01-03 22:17:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-01-03 22:17:27 +0000
commit3739151f5bd882426bc070ba83852095b068e287 (patch)
tree0f597a403c4a191be39dd0af67f66243b0d0d2f9 /src/core/ngx_file.h
parent501fc74854a0849547a0309fe991bf8888a16d6d (diff)
downloadnginx-3739151f5bd882426bc070ba83852095b068e287.tar.gz
nginx-3739151f5bd882426bc070ba83852095b068e287.zip
add declaration missed in previous commit
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r--src/core/ngx_file.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h
index 61089ff34..a5637bbc5 100644
--- a/src/core/ngx_file.h
+++ b/src/core/ngx_file.h
@@ -57,6 +57,18 @@ typedef struct {
} ngx_temp_file_t;
+typedef struct {
+ ngx_uint_t access;
+ time_t time;
+ ngx_fd_t fd;
+
+ unsigned create_path:1;
+ unsigned delete:1;
+
+ ngx_log_t *log;
+} ngx_ext_rename_file_t;
+
+
typedef struct ngx_tree_ctx_s ngx_tree_ctx_t;
typedef ngx_int_t (*ngx_tree_init_handler_pt) (void *ctx, void *prev);
@@ -89,8 +101,8 @@ ngx_int_t ngx_create_path(ngx_file_t *file, ngx_path_t *path);
ngx_err_t ngx_create_full_path(u_char *dir, ngx_uint_t access);
ngx_int_t ngx_add_path(ngx_conf_t *cf, ngx_path_t **slot);
ngx_int_t ngx_create_pathes(ngx_cycle_t *cycle, ngx_uid_t user);
-ngx_int_t ngx_create_path_and_rename_file(ngx_str_t *src, ngx_str_t *to,
- ngx_uint_t access, ngx_uint_t full_path, ngx_uint_t delete, ngx_log_t *log);
+ngx_int_t ngx_ext_rename_file(ngx_str_t *src, ngx_str_t *to,
+ ngx_ext_rename_file_t *ext);
ngx_int_t ngx_walk_tree(ngx_tree_ctx_t *ctx, ngx_str_t *tree);
void ngx_init_temp_number(void);