comparison src/os/win32/ngx_files.h @ 3501:423ff11e3018

use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinks
author Igor Sysoev <igor@sysoev.ru>
date Thu, 22 Apr 2010 17:15:42 +0000
parents ac281bc4c187
children 515d50917016
comparison
equal deleted inserted replaced
3500:0eb46e3c5c02 3501:423ff11e3018
126 126
127 #define ngx_fd_info(fd, fi) GetFileInformationByHandle(fd, fi) 127 #define ngx_fd_info(fd, fi) GetFileInformationByHandle(fd, fi)
128 #define ngx_fd_info_n "GetFileInformationByHandle()" 128 #define ngx_fd_info_n "GetFileInformationByHandle()"
129 129
130 130
131 #define ngx_link_info(name, fi) ngx_file_info(name, fi)
132 #define ngx_link_info_n "GetFileAttributesEx()"
133
134
131 #define ngx_is_dir(fi) \ 135 #define ngx_is_dir(fi) \
132 (((fi)->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) 136 (((fi)->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0)
133 #define ngx_is_file(fi) \ 137 #define ngx_is_file(fi) \
134 (((fi)->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) 138 (((fi)->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
135 #define ngx_is_link(fi) 0 139 #define ngx_is_link(fi) 0