comparison src/os/win32/ngx_stat.h @ 0:4eff17414a43

nginx-0.0.1-2002-08-06-20:39:45 import The first code that uses "ngx_" prefix, the previous one used "gx_" prefix. At that point the code is not yet usable. The first draft ideas are dated back to 23.10.2001.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 06 Aug 2002 16:39:45 +0000
parents
children 34a521b1a148
comparison
equal deleted inserted replaced
-1:000000000000 0:4eff17414a43
1 #ifndef _NGX_STAT_H_INCLUDED_
2 #define _NGX_STAT_H_INCLUDED_
3
4
5 #include <windows.h>
6
7 /* INVALID_FILE_ATTRIBUTES specified but never defined */
8 #ifndef INVALID_FILE_ATTRIBUTES
9 #define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF
10 #endif
11
12 typedef DWORD ngx_stat_t;
13
14
15 #define ngx_is_dir(sb) (*sb & FILE_ATTRIBUTE_DIRECTORY)
16
17 #define ngx_stat_n "GetFileAttributes"
18
19 #define ngx_fstat(file, fd, sb) ngx_stat(file, sb)
20 #define ngx_fstat_n "GetFileAttributes"
21
22
23 int ngx_stat(char *file, ngx_stat_t *sb);
24
25
26 #endif /* _NGX_STAT_H_INCLUDED_ */