comparison src/os/unix/ngx_files.h @ 238:a528ae0fe909 NGINX_0_4_4

nginx 0.4.4 *) Feature: the $scheme variable. *) Feature: the "expires" directive supports the "max" parameter. *) Feature: the "include" directive supports the "*" mask. Thanks to Jonathan Dance. *) Bugfix: the "return" directive always overrode the "error_page" response code redirected by the "error_page" directive. *) Bugfix: a segmentation fault occurred if zero-length body was in PUT method. *) Bugfix: the redirect was changed incorrectly if the variables were used in the "proxy_redirect" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 02 Oct 2006 00:00:00 +0400
parents c16038b14e68
children 7d7cee0d62e0
comparison
equal deleted inserted replaced
237:302a8e8b4ae7 238:a528ae0fe909
128 #define ngx_de_is_link(dir) (S_ISLNK((dir)->info.st_mode)) 128 #define ngx_de_is_link(dir) (S_ISLNK((dir)->info.st_mode))
129 #define ngx_de_size(dir) (dir)->info.st_size 129 #define ngx_de_size(dir) (dir)->info.st_size
130 #define ngx_de_mtime(dir) (dir)->info.st_mtime 130 #define ngx_de_mtime(dir) (dir)->info.st_mtime
131 131
132 132
133 typedef struct {
134 int n;
135 glob_t pglob;
136 u_char *pattern;
137 ngx_log_t *log;
138 } ngx_glob_t;
139
140
141 ngx_int_t ngx_open_glob(ngx_glob_t *gl);
142 #define ngx_open_glob_n "glob()"
143 ngx_int_t ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name);
144 void ngx_close_glob(ngx_glob_t *gl);
145
146
133 ngx_err_t ngx_trylock_fd(ngx_fd_t fd); 147 ngx_err_t ngx_trylock_fd(ngx_fd_t fd);
134 ngx_err_t ngx_lock_fd(ngx_fd_t fd); 148 ngx_err_t ngx_lock_fd(ngx_fd_t fd);
135 ngx_err_t ngx_unlock_fd(ngx_fd_t fd); 149 ngx_err_t ngx_unlock_fd(ngx_fd_t fd);
136 150
137 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)" 151 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)"