Mercurial > hg > nginx-vendor-0-7
diff src/os/unix/ngx_files.c @ 6:80ba094c6b3e NGINX_0_1_3
nginx 0.1.3
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 25 Oct 2004 00:00:00 +0400 |
parents | 4b2dafa26fe2 |
children | 46833bd150cb |
line wrap: on
line diff
--- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -15,7 +15,7 @@ ssize_t ngx_read_file(ngx_file_t *file, ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0, "read: %d, %X, %d, " OFF_T_FMT, file->fd, buf, size, offset); -#if (HAVE_PREAD) +#if (NGX_PREAD) n = pread(file->fd, buf, size, offset); @@ -57,7 +57,7 @@ ssize_t ngx_write_file(ngx_file_t *file, { ssize_t n; -#if (HAVE_PWRITE) +#if (NGX_PWRITE) n = pwrite(file->fd, buf, size, offset); @@ -206,7 +206,7 @@ int ngx_open_dir(ngx_str_t *name, ngx_di return NGX_ERROR; } - dir->info_valid = 0; + dir->valid_info = 0; return NGX_OK; }