Mercurial > hg > nginx
comparison src/http/modules/ngx_http_index_module.c @ 1048:c4f666fc3a7e
ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Jan 2007 20:15:09 +0000 |
parents | ff762576da78 |
children | f497ed7682a7 |
comparison
equal
deleted
inserted
replaced
1047:ea6f43a88208 | 1048:c4f666fc3a7e |
---|---|
243 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); | 243 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); |
244 if (cln == NULL) { | 244 if (cln == NULL) { |
245 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 245 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
246 } | 246 } |
247 | 247 |
248 fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); | 248 fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); |
249 | 249 |
250 if (fd == (ngx_fd_t) NGX_AGAIN) { | 250 if (fd == (ngx_fd_t) NGX_AGAIN) { |
251 ctx->current = i; | 251 ctx->current = i; |
252 return NGX_AGAIN; | 252 return NGX_AGAIN; |
253 } | 253 } |