Mercurial > hg > nginx
comparison src/os/win32/ngx_stat.c @ 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 | cd035a94e0b6 |
comparison
equal
deleted
inserted
replaced
2:ffffe1499bce | 3:34a521b1a148 |
---|---|
1 | 1 |
2 #include <windows.h> | 2 #include <windows.h> |
3 | 3 |
4 #include <ngx_stat.h> | 4 #include <ngx_stat.h> |
5 | 5 |
6 int ngx_file_type(char *file, ngx_file_info_t *sb) | |
7 { | |
8 sb->dwFileAttributes = GetFileAttributes(file); | |
9 | |
10 if (sb->dwFileAttributes == INVALID_FILE_ATTRIBUTES) { | |
11 return -1; | |
12 } | |
13 | |
14 return 0; | |
15 } | |
16 | |
17 /* | |
6 int ngx_stat(char *file, ngx_stat_t *sb) | 18 int ngx_stat(char *file, ngx_stat_t *sb) |
7 { | 19 { |
8 *sb = GetFileAttributes(file); | 20 *sb = GetFileAttributes(file); |
9 | 21 |
10 if (*sb == INVALID_FILE_ATTRIBUTES) { | 22 if (*sb == INVALID_FILE_ATTRIBUTES) { |
11 return -1; | 23 return -1; |
12 } | 24 } |
13 | 25 |
14 return 0; | 26 return 0; |
15 } | 27 } |
28 */ |