comparison src/os/unix/ngx_files.h @ 1048:c4f666fc3a7e

ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jan 2007 20:15:09 +0000
parents bb139aba3199
children b9fa23cda4cc
comparison
equal deleted inserted replaced
1047:ea6f43a88208 1048:c4f666fc3a7e
15 #define NGX_INVALID_FILE -1 15 #define NGX_INVALID_FILE -1
16 #define NGX_FILE_ERROR -1 16 #define NGX_FILE_ERROR -1
17 17
18 18
19 19
20 #define ngx_open_file(name, access, create) \ 20 #define ngx_open_file(name, mode, create, access) \
21 open((const char *) name, access|create, 0644) 21 open((const char *) name, mode|create, access)
22 #define ngx_open_file_n "open()" 22 #define ngx_open_file_n "open()"
23 23
24 #define NGX_FILE_RDONLY O_RDONLY 24 #define NGX_FILE_RDONLY O_RDONLY
25 #define NGX_FILE_RDWR O_RDWR 25 #define NGX_FILE_RDWR O_RDWR
26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT 26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT
27 #define NGX_FILE_OPEN 0 27 #define NGX_FILE_OPEN 0
28 #define NGX_FILE_TRUNCATE O_TRUNC 28 #define NGX_FILE_TRUNCATE O_TRUNC
29 #define NGX_FILE_APPEND O_APPEND 29 #define NGX_FILE_APPEND O_APPEND
30
31 #define NGX_FILE_DEFAULT_ACCESS 0644
30 32
31 33
32 #define ngx_close_file close 34 #define ngx_close_file close
33 #define ngx_close_file_n "close()" 35 #define ngx_close_file_n "close()"
34 36