comparison src/os/unix/ngx_files.h @ 2629:367b29612a00

Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are set without any other flags. On the other hand, Unix requires at least the write flag to be set together with O_APPEND.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 31 Mar 2009 13:52:01 +0000
parents ceef364208c8
children 9e0ae986b587
comparison
equal deleted inserted replaced
2628:64a10d6b97bd 2629:367b29612a00
62 #define NGX_FILE_WRONLY O_WRONLY 62 #define NGX_FILE_WRONLY O_WRONLY
63 #define NGX_FILE_RDWR O_RDWR 63 #define NGX_FILE_RDWR O_RDWR
64 #define NGX_FILE_CREATE_OR_OPEN O_CREAT 64 #define NGX_FILE_CREATE_OR_OPEN O_CREAT
65 #define NGX_FILE_OPEN 0 65 #define NGX_FILE_OPEN 0
66 #define NGX_FILE_TRUNCATE O_TRUNC 66 #define NGX_FILE_TRUNCATE O_TRUNC
67 #define NGX_FILE_APPEND O_APPEND 67 #define NGX_FILE_APPEND O_WRONLY|O_APPEND
68 68
69 #define NGX_FILE_DEFAULT_ACCESS 0644 69 #define NGX_FILE_DEFAULT_ACCESS 0644
70 #define NGX_FILE_OWNER_ACCESS 0600 70 #define NGX_FILE_OWNER_ACCESS 0600
71 71
72 72