diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-03-30 18:51:51 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-30 18:51:51 +0400 |
commit | fadc7a7e810874b95bb934aa107bfe0a795347d3 (patch) | |
tree | 433f2fc4d83f67bdd560acf35b82dee0af4ac0fa /src/os/win32/ngx_files.h | |
parent | 8017a63cb3952850d0b40b4c95a938a7dbff7fe5 (diff) |
win32 ngx_open_file() supports utf8 names and NGX_FILE_APPEND
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r-- | src/os/win32/ngx_files.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index 47a76611b..5efd0fe1a 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -57,22 +57,16 @@ typedef struct { #define NGX_FILE_ERROR 0 -/* - * FILE_FLAG_BACKUP_SEMANTICS allows to obtain a handle to a directory - */ - -#define ngx_open_file(name, mode, create, access) \ - CreateFile((const char *) name, mode, \ - FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, \ - NULL, create, FILE_FLAG_BACKUP_SEMANTICS, NULL) +ngx_fd_t ngx_open_file(u_char *name, u_long mode, u_long create, u_long access); #define ngx_open_file_n "CreateFile()" #define NGX_FILE_RDONLY GENERIC_READ #define NGX_FILE_WRONLY GENERIC_WRITE #define NGX_FILE_RDWR GENERIC_READ|GENERIC_WRITE +#define NGX_FILE_APPEND FILE_APPEND_DATA|SYNCHRONIZE + #define NGX_FILE_CREATE_OR_OPEN OPEN_ALWAYS #define NGX_FILE_OPEN OPEN_EXISTING -#define NGX_FILE_APPEND 0 #define NGX_FILE_DEFAULT_ACCESS 0 #define NGX_FILE_OWNER_ACCESS 0 |