Mercurial > hg > nginx
diff src/os/win32/ngx_files.h @ 497:d7c90bb5ce83 release-0.1.23
nginx-0.1.23-RELEASE import
*) Feature: the ngx_http_ssi_filter_module and the ssi,
ssi_silent_errors, and ssi_min_file_chunk directives. The 'echo
var="HTTP_..." default=""' and 'echo var="REMOTE_ADDR"' commands are
supported.
*) Feature: the %request_time log parameter.
*) Feature: if the request has no the "Host" header line, then the
"proxy_preserve_host" directive set this header line to the first
server name of the "server_name" directive.
*) Bugfix: nginx could not be built on platforms different from i386,
amd64, sparc, and ppc; the bug had appeared in 0.1.22.
*) Bugfix: the ngx_http_autoindex_module now shows the information not
about the symlink, but about file or directory it points to.
*) Bugfix: the %apache_length parameter logged the negative length of
the response header if the no response was transferred to a client.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Mar 2005 15:20:36 +0000 |
parents | bbd6b0b4a2b1 |
children | d4ea69372b94 |
line wrap: on
line diff
--- a/src/os/win32/ngx_files.h Thu Feb 24 12:29:09 2005 +0000 +++ b/src/os/win32/ngx_files.h Tue Mar 01 15:20:36 2005 +0000 @@ -29,11 +29,11 @@ #define ngx_open_file(name, access, create) \ - CreateFile((const char *) name, access, \ - FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, \ - NULL, create, FILE_FLAG_BACKUP_SEMANTICS, NULL) + CreateFile((const char *) name, access, \ + FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, \ + NULL, create, FILE_FLAG_BACKUP_SEMANTICS, NULL) /* - NULL, OPEN_EXISTING, 0, NULL) + NULL, OPEN_EXISTING, 0, NULL) */ #define ngx_open_file_n "CreateFile()" @@ -49,14 +49,14 @@ #define ngx_open_tempfile(name, persistent) \ - CreateFile((const char *) name, \ - GENERIC_READ|GENERIC_WRITE, \ - FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, \ - NULL, \ - CREATE_NEW, \ - persistent ? 0: \ - FILE_ATTRIBUTE_TEMPORARY|FILE_FLAG_DELETE_ON_CLOSE, \ - NULL); + CreateFile((const char *) name, \ + GENERIC_READ|GENERIC_WRITE, \ + FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, \ + NULL, \ + CREATE_NEW, \ + persistent ? 0: \ + FILE_ATTRIBUTE_TEMPORARY|FILE_FLAG_DELETE_ON_CLOSE, \ + NULL); #define ngx_open_tempfile_n "CreateFile()" @@ -72,7 +72,7 @@ #define ngx_rename_file MoveFile #define ngx_rename_file_n "MoveFile()" ngx_int_t ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, - ngx_pool_t *pool); + ngx_pool_t *pool); ngx_int_t ngx_file_info(u_char *filename, ngx_file_info_t *fi); @@ -88,7 +88,7 @@ #define ngx_file_size(fi) \ - (((off_t) (fi)->nFileSizeHigh << 32) | (fi)->nFileSizeLow) + (((off_t) (fi)->nFileSizeHigh << 32) | (fi)->nFileSizeLow) #define ngx_file_uniq(fi) (*(ngx_file_uniq_t *) &(fi)->nFileIndexHigh) @@ -134,17 +134,20 @@ #define ngx_de_namelen(dir) ngx_strlen((dir)->fd.cFileName) #define ngx_de_info(name, dir) NGX_OK #define ngx_de_info_n "dummy()" +#define ngx_de_link_info(name, dir) NGX_OK +#define ngx_de_link_info_n "dummy()" #define ngx_de_is_dir(dir) \ - ((dir)->fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + ((dir)->fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) #define ngx_de_is_file(dir) \ - !((dir)->fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + !((dir)->fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) +#define ngx_de_is_link(dir) 0 #define ngx_de_size(dir) \ - (((off_t) (dir)->fd.nFileSizeHigh << 32) | (dir)->fd.nFileSizeLow) + (((off_t) (dir)->fd.nFileSizeHigh << 32) | (dir)->fd.nFileSizeLow) /* 116444736000000000 is commented in src/os/win32/ngx_time.c */ #define ngx_de_mtime(dir) \ - (time_t) (((((unsigned __int64) \ + (time_t) (((((unsigned __int64) \ (dir)->fd.ftLastWriteTime.dwHighDateTime << 32) \ | (dir)->fd.ftLastWriteTime.dwLowDateTime) \ - 116444736000000000) / 10000000) @@ -155,10 +158,10 @@ #define ngx_read_file_n "ReadFile()" ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, - off_t offset); + off_t offset); ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce, - off_t offset, ngx_pool_t *pool); + off_t offset, ngx_pool_t *pool); #endif /* _NGX_FILES_H_INCLUDED_ */