diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 20:49:57 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 20:49:57 +0300 |
commit | 2062ddef3989525e22445b1965220ffaf8e161c9 (patch) | |
tree | 7c43099c2beb0037f5b3252e60ede391ff070c50 /src/os/win32/ngx_files.h | |
parent | 4d84bc492936cd047d5f589ef4bc4736093ec176 (diff) | |
download | nginx-2062ddef3989525e22445b1965220ffaf8e161c9.tar.gz nginx-2062ddef3989525e22445b1965220ffaf8e161c9.zip |
Win32: non-ASCII names support in ngx_open_tempfile().
This makes it possible to use temporary directories with non-ASCII characters,
either explicitly or via a prefix with non-ASCII characters in it.
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r-- | src/os/win32/ngx_files.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index 143120647..6e59a6fc9 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -90,16 +90,8 @@ ngx_fd_t ngx_open_file(u_char *name, u_long mode, u_long create, u_long access); #define NGX_FILE_OWNER_ACCESS 0 -#define ngx_open_tempfile(name, persistent, access) \ - CreateFile((const char *) name, \ - 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); - +ngx_fd_t ngx_open_tempfile(u_char *name, ngx_uint_t persistent, + ngx_uint_t access); #define ngx_open_tempfile_n "CreateFile()" |