diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 21:26:01 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 21:26:01 +0000 |
commit | da85f7f5fc233a10abf3cbcbda547c918b67fb27 (patch) | |
tree | cf196e3f59770ee720b4ad387eee004b4f28f762 /src/core/ngx_file.c | |
parent | 9c61095a30ed2b6bf051dacbbbd26ae2769d9e34 (diff) | |
download | nginx-da85f7f5fc233a10abf3cbcbda547c918b67fb27.tar.gz nginx-da85f7f5fc233a10abf3cbcbda547c918b67fb27.zip |
nginx-0.0.3-2004-03-17-00:26:01 import
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index cbb1cb2c3..48cff4624 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -57,24 +57,10 @@ int ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_create_hashed_filename(file, path); #if 0 -#if (WIN32) - file->fd = CreateFile(file->name.data, - GENERIC_READ|GENERIC_WRITE, - FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, - NULL, - CREATE_NEW, - persistent ? 0: - FILE_ATTRIBUTE_TEMPORARY|FILE_FLAG_DELETE_ON_CLOSE, - NULL); -#else - file->fd = open(file->name.data, O_CREAT|O_EXCL|O_WRONLY, 0600); -#endif -#endif - -#if 0 file->fd = ngx_open_tempfile(file->name.data, persistent); -#endif +#else file->fd = ngx_open_tempfile(file->name.data, 1); +#endif ngx_log_debug1(NGX_LOG_DEBUG_CORE, file->log, 0, "temp fd:%d", file->fd); |