summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32/ngx_stat.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-08-20 14:48:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-08-20 14:48:28 +0000
commit2b54238a5f2edcca568c0676a779ef79ba152c91 (patch)
tree2cb7eb660e691eaab2c4f031adf881b7c88bffc9 /src/os/win32/ngx_stat.h
parente0af1b89dcd100462a3195534b2f78a838ca85b5 (diff)
downloadnginx-2b54238a5f2edcca568c0676a779ef79ba152c91.tar.gz
nginx-2b54238a5f2edcca568c0676a779ef79ba152c91.tar.bz2
nginx-0.0.1-2002-08-20-18:48:28 import
Diffstat (limited to '')
-rw-r--r--src/os/win32/ngx_stat.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/os/win32/ngx_stat.h b/src/os/win32/ngx_stat.h
index 600facd3e..6daf4e66e 100644
--- a/src/os/win32/ngx_stat.h
+++ b/src/os/win32/ngx_stat.h
@@ -4,15 +4,17 @@
#include <windows.h>
-/* INVALID_FILE_ATTRIBUTES specified but never defined */
+/* INVALID_FILE_ATTRIBUTES specified but never defined at least in VC6SP2 */
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF
#endif
-typedef DWORD ngx_stat_t;
+typedef BY_HANDLE_FILE_INFORMATION ngx_file_info_t;
-#define ngx_is_dir(sb) (*sb & FILE_ATTRIBUTE_DIRECTORY)
+#define ngx_file_type_n "GetFileAttributes"
+
+#define ngx_is_dir(fi) (fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
#define ngx_stat_n "GetFileAttributes"
@@ -20,7 +22,9 @@ typedef DWORD ngx_stat_t;
#define ngx_fstat_n "GetFileAttributes"
+/*
int ngx_stat(char *file, ngx_stat_t *sb);
+*/
#endif /* _NGX_STAT_H_INCLUDED_ */