nginx/src/os/win32/ngx_stat.c

34 lines
464 B
C
Raw Normal View History

/*
* Copyright (C) Igor Sysoev
*/
2002-12-27 15:27:47 +08:00
#include <ngx_config.h>
#include <ngx_core.h>
2002-08-20 22:48:28 +08:00
int ngx_file_type(char *file, ngx_file_info_t *sb)
{
sb->dwFileAttributes = GetFileAttributes(file);
if (sb->dwFileAttributes == INVALID_FILE_ATTRIBUTES) {
return -1;
}
return 0;
}
/*
int ngx_stat(char *file, ngx_stat_t *sb)
{
*sb = GetFileAttributes(file);
if (*sb == INVALID_FILE_ATTRIBUTES) {
return -1;
}
return 0;
}
2002-08-20 22:48:28 +08:00
*/