comparison src/os/unix/ngx_files.h @ 568:566e105a89f1 NGINX_0_8_36

nginx 0.8.36 *) Bugfix: the ngx_http_dav_module handled incorrectly the DELETE, COPY, and MOVE methods for symlinks. *) Bugfix: values of the $query_string, $arg_..., etc. variables cached in main request were used by the SSI module in subrequests. *) Bugfix: a variable value was repeatedly encoded after each an "echo" SSI-command output; the bug had appeared in 0.6.14. *) Bugfix: a worker process hung if a FIFO file was requested. Thanks to Vicente Aguilar and Maxim Dounin. *) Bugfix: OpenSSL-1.0.0 compatibility on 64-bit Linux. Thanks to Maxim Dounin. *) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.8.35.
author Igor Sysoev <http://sysoev.ru>
date Thu, 22 Apr 2010 00:00:00 +0400
parents e19e5f542878
children c456a023113c
comparison
equal deleted inserted replaced
567:a49f5d0aff01 568:566e105a89f1
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
136 #define ngx_file_info_n "stat()" 137 #define ngx_file_info_n "stat()"
137 138
138 #define ngx_fd_info(fd, sb) fstat(fd, sb) 139 #define ngx_fd_info(fd, sb) fstat(fd, sb)
139 #define ngx_fd_info_n "fstat()" 140 #define ngx_fd_info_n "fstat()"
140 141
142 #define ngx_link_info(file, sb) lstat((const char *) file, sb)
143 #define ngx_link_info_n "lstat()"
144
141 #define ngx_is_dir(sb) (S_ISDIR((sb)->st_mode)) 145 #define ngx_is_dir(sb) (S_ISDIR((sb)->st_mode))
142 #define ngx_is_file(sb) (S_ISREG((sb)->st_mode)) 146 #define ngx_is_file(sb) (S_ISREG((sb)->st_mode))
143 #define ngx_is_link(sb) (S_ISLNK((sb)->st_mode)) 147 #define ngx_is_link(sb) (S_ISLNK((sb)->st_mode))
144 #define ngx_is_exec(sb) (((sb)->st_mode & S_IXUSR) == S_IXUSR) 148 #define ngx_is_exec(sb) (((sb)->st_mode & S_IXUSR) == S_IXUSR)
145 #define ngx_file_access(sb) ((sb)->st_mode & 0777) 149 #define ngx_file_access(sb) ((sb)->st_mode & 0777)