diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-10-25 19:29:23 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-10-25 19:29:23 +0400 |
commit | 723e6cc248470b95f62e338cd5e1a6514975f9cc (patch) | |
tree | dd9fb2b16d384f241c2303d3cbb6e25aeeb89ab0 /src/os/unix/ngx_files.c | |
parent | 4925ed843a96d9b2dbb41ef961cc37e9fa03539a (diff) |
nginx-0.1.3-RELEASE importrelease-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.
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r-- | src/os/unix/ngx_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index f2ba3a451..da75ba022 100644 --- 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, u_char *buf, size_t size, off_t offset) 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, u_char *buf, size_t size, off_t offset) { 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_dir_t *dir) return NGX_ERROR; } - dir->info_valid = 0; + dir->valid_info = 0; return NGX_OK; } |