Mercurial > hg > nginx
comparison src/os/unix/ngx_files.h @ 3497:ac281bc4c187
use non-blocking open() not to hang on FIFO files, etc.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 21 Apr 2010 15:59:36 +0000 |
parents | e19df6e65352 |
children | 423ff11e3018 |
comparison
equal
deleted
inserted
replaced
3496:fb88801564de | 3497:ac281bc4c187 |
---|---|
62 #define NGX_FILE_RDWR O_RDWR | 62 #define NGX_FILE_RDWR O_RDWR |
63 #define NGX_FILE_CREATE_OR_OPEN O_CREAT | 63 #define NGX_FILE_CREATE_OR_OPEN O_CREAT |
64 #define NGX_FILE_OPEN 0 | 64 #define NGX_FILE_OPEN 0 |
65 #define NGX_FILE_TRUNCATE O_CREAT|O_TRUNC | 65 #define NGX_FILE_TRUNCATE O_CREAT|O_TRUNC |
66 #define NGX_FILE_APPEND O_WRONLY|O_APPEND | 66 #define NGX_FILE_APPEND O_WRONLY|O_APPEND |
67 #define NGX_FILE_NONBLOCK O_NONBLOCK | |
67 | 68 |
68 #define NGX_FILE_DEFAULT_ACCESS 0644 | 69 #define NGX_FILE_DEFAULT_ACCESS 0644 |
69 #define NGX_FILE_OWNER_ACCESS 0600 | 70 #define NGX_FILE_OWNER_ACCESS 0600 |
70 | 71 |
71 | 72 |