]> git.kaiwu.me - nginx.git/commitdiff
NGX_FILE_WRONLY
authorIgor Sysoev <igor@sysoev.ru>
Thu, 18 Jan 2007 20:37:19 +0000 (20:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 18 Jan 2007 20:37:19 +0000 (20:37 +0000)
src/os/unix/ngx_files.h
src/os/win32/ngx_files.h

index e05cb4409c02a63d24f13c2e611805824b9025ee..c4eccf1fe74974c1f780d209c8227fcdaf2dd781 100644 (file)
@@ -22,6 +22,7 @@
 #define ngx_open_file_n          "open()"
 
 #define NGX_FILE_RDONLY          O_RDONLY
+#define NGX_FILE_WRONLY          O_WRONLY
 #define NGX_FILE_RDWR            O_RDWR
 #define NGX_FILE_CREATE_OR_OPEN  O_CREAT
 #define NGX_FILE_OPEN            0
index 7db5c810024affd58c50a6205f8cbd0cf924ff83..f5a97f8b49634c9dedb56be48d605762dc70f918 100644 (file)
@@ -38,6 +38,7 @@
 #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_CREATE_OR_OPEN     OPEN_ALWAYS
 #define NGX_FILE_OPEN               OPEN_EXISTING