Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_files.h @ 9041:4b06186670ed
Win32: non-ASCII names support in ngx_delete_file().
This makes it possible to delete files with non-ASCII characters
when using the dav module (ticket #1433).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Feb 2023 20:49:54 +0300 |
parents | 7d60e4584d9e |
children | 96d894b38667 |
comparison
equal
deleted
inserted
replaced
9040:37a184966ab3 | 9041:4b06186670ed |
---|---|
121 #define ngx_linefeed(p) *p++ = CR; *p++ = LF; | 121 #define ngx_linefeed(p) *p++ = CR; *p++ = LF; |
122 #define NGX_LINEFEED_SIZE 2 | 122 #define NGX_LINEFEED_SIZE 2 |
123 #define NGX_LINEFEED CRLF | 123 #define NGX_LINEFEED CRLF |
124 | 124 |
125 | 125 |
126 #define ngx_delete_file(name) DeleteFile((const char *) name) | 126 ngx_int_t ngx_delete_file(u_char *name); |
127 #define ngx_delete_file_n "DeleteFile()" | 127 #define ngx_delete_file_n "DeleteFile()" |
128 | 128 |
129 | 129 |
130 #define ngx_rename_file(o, n) MoveFile((const char *) o, (const char *) n) | 130 #define ngx_rename_file(o, n) MoveFile((const char *) o, (const char *) n) |
131 #define ngx_rename_file_n "MoveFile()" | 131 #define ngx_rename_file_n "MoveFile()" |