comparison src/os/unix/ngx_files.c @ 2234:c7c319896bb4

*) autoconfigure struct dirent capabilities *) move src/os/.../ngx_types.h's content into src/os/.../ngx_files.h and delete src/os/.../ngx_types.h
author Igor Sysoev <igor@sysoev.ru>
date Fri, 05 Sep 2008 15:43:34 +0000
parents 2cae41e51622
children 1adec90a0e46
comparison
equal deleted inserted replaced
2233:f62751dab60d 2234:c7c319896bb4
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)