mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
This commit is contained in:
parent
12fcfab8be
commit
50034b856c
9 changed files with 20 additions and 13 deletions
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
|
||||
|
||||
#define ngx_open_file(name, access, create) \
|
||||
open((const char *) name, access|create, 0644)
|
||||
#define ngx_open_file(name, mode, create, access) \
|
||||
open((const char *) name, mode|create, access)
|
||||
#define ngx_open_file_n "open()"
|
||||
|
||||
#define NGX_FILE_RDONLY O_RDONLY
|
||||
|
|
@ -28,6 +28,8 @@
|
|||
#define NGX_FILE_TRUNCATE O_TRUNC
|
||||
#define NGX_FILE_APPEND O_APPEND
|
||||
|
||||
#define NGX_FILE_DEFAULT_ACCESS 0644
|
||||
|
||||
|
||||
#define ngx_close_file close
|
||||
#define ngx_close_file_n "close()"
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
|
||||
|
||||
#define ngx_open_file(name, access, create) \
|
||||
CreateFile((const char *) name, access, \
|
||||
#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)
|
||||
/*
|
||||
|
|
@ -43,6 +43,8 @@
|
|||
#define NGX_FILE_OPEN OPEN_EXISTING
|
||||
#define NGX_FILE_APPEND 0
|
||||
|
||||
#define NGX_FILE_DEFAULT_ACCESS 0
|
||||
|
||||
|
||||
ngx_int_t ngx_file_append_mode(ngx_fd_t fd);
|
||||
#define ngx_file_append_mode_n "SetFilePointer()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue