Mercurial > hg > nginx
comparison src/os/win32/ngx_stat.h @ 3:34a521b1a148
nginx-0.0.1-2002-08-20-18:48:28 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 20 Aug 2002 14:48:28 +0000 |
parents | 4eff17414a43 |
children | b48066122884 |
comparison
equal
deleted
inserted
replaced
2:ffffe1499bce | 3:34a521b1a148 |
---|---|
2 #define _NGX_STAT_H_INCLUDED_ | 2 #define _NGX_STAT_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #include <windows.h> | 5 #include <windows.h> |
6 | 6 |
7 /* INVALID_FILE_ATTRIBUTES specified but never defined */ | 7 /* INVALID_FILE_ATTRIBUTES specified but never defined at least in VC6SP2 */ |
8 #ifndef INVALID_FILE_ATTRIBUTES | 8 #ifndef INVALID_FILE_ATTRIBUTES |
9 #define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF | 9 #define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF |
10 #endif | 10 #endif |
11 | 11 |
12 typedef DWORD ngx_stat_t; | 12 typedef BY_HANDLE_FILE_INFORMATION ngx_file_info_t; |
13 | 13 |
14 | 14 |
15 #define ngx_is_dir(sb) (*sb & FILE_ATTRIBUTE_DIRECTORY) | 15 #define ngx_file_type_n "GetFileAttributes" |
16 | |
17 #define ngx_is_dir(fi) (fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) | |
16 | 18 |
17 #define ngx_stat_n "GetFileAttributes" | 19 #define ngx_stat_n "GetFileAttributes" |
18 | 20 |
19 #define ngx_fstat(file, fd, sb) ngx_stat(file, sb) | 21 #define ngx_fstat(file, fd, sb) ngx_stat(file, sb) |
20 #define ngx_fstat_n "GetFileAttributes" | 22 #define ngx_fstat_n "GetFileAttributes" |
21 | 23 |
22 | 24 |
25 /* | |
23 int ngx_stat(char *file, ngx_stat_t *sb); | 26 int ngx_stat(char *file, ngx_stat_t *sb); |
27 */ | |
24 | 28 |
25 | 29 |
26 #endif /* _NGX_STAT_H_INCLUDED_ */ | 30 #endif /* _NGX_STAT_H_INCLUDED_ */ |