From 6de5c2cb63f8aee4bcbec3c363a72fd8e4a4e64d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 6 Aug 2002 16:39:45 +0000 Subject: 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. --- src/os/win32/ngx_stat.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/os/win32/ngx_stat.c (limited to 'src/os/win32/ngx_stat.c') diff --git a/src/os/win32/ngx_stat.c b/src/os/win32/ngx_stat.c new file mode 100644 index 000000000..5b1af3014 --- /dev/null +++ b/src/os/win32/ngx_stat.c @@ -0,0 +1,15 @@ + +#include + +#include + +int ngx_stat(char *file, ngx_stat_t *sb) +{ + *sb = GetFileAttributes(file); + + if (*sb == INVALID_FILE_ATTRIBUTES) { + return -1; + } + + return 0; +} -- cgit