comparison src/os/unix/ngx_files.c @ 406:79c5df00501e NGINX_0_7_15

nginx 0.7.15 *) Feature: the ngx_http_random_index_module. *) Feature: the "directio" directive has been optimized for file requests starting from arbitrary position. *) Feature: the "directio" directive turns off sendfile if it is necessary. *) Feature: now nginx allows underscores in a client request header line names.
author Igor Sysoev <http://sysoev.ru>
date Mon, 08 Sep 2008 00:00:00 +0400
parents df7b79c859c3
children a8e3f1441eec
comparison
equal deleted inserted replaced
405:2993e60bc4e0 406:79c5df00501e
247 if (dir->dir == NULL) { 247 if (dir->dir == NULL) {
248 return NGX_ERROR; 248 return NGX_ERROR;
249 } 249 }
250 250
251 dir->valid_info = 0; 251 dir->valid_info = 0;
252 #if (NGX_HAVE_D_TYPE)
253 dir->valid_type = 1;
254 #else
255 dir->valid_type = 0;
256 #endif
252 257
253 return NGX_OK; 258 return NGX_OK;
259 }
260
261
262 ngx_int_t
263 ngx_read_dir(ngx_dir_t *dir)
264 {
265 dir->de = readdir(dir->dir);
266
267 if (dir->de) {
268 #if (NGX_HAVE_D_TYPE)
269 dir->type = dir->de->d_type;
270 #endif
271 return NGX_OK;
272 }
273
274 return NGX_ERROR;
254 } 275 }
255 276
256 277
257 ngx_int_t 278 ngx_int_t
258 ngx_open_glob(ngx_glob_t *gl) 279 ngx_open_glob(ngx_glob_t *gl)