diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-10-25 15:20:58 +0000 |
---|---|---|
committer | Jonathan Kolb <jon@b0g.us> | 2004-10-25 15:20:58 +0000 |
commit | 97037d1561937dbd6d738dfce58613349c98eb5a (patch) | |
tree | a239e9ee925bc419f1afb039bfc9109fb8f2d76b /src/os/unix/ngx_files.c | |
parent | a3b9eb91d36557964697d6a22ac0ab61d95421cf (diff) | |
download | nginx-0.1.3.tar.gz |
Changes with nginx 0.1.3 25 Oct 2004v0.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; } |