comparison src/os/unix/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
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 <sys/types.h>
6 #include <sys/stat.h>
7
8 typedef struct stat ngx_stat_t;
9
10 #define ngx_is_dir(sb) (S_ISDIR(sb.st_mode))
11
12 #define ngx_stat(file, sb) stat(file, sb)
13 #define ngx_stat_n "stat"
14
15 #define ngx_fstat(file, fd, sb) fstat(fd, sb)
16 #define ngx_fstat_n "stat"
17
18
19 #endif /* _NGX_STAT_H_INCLUDED_ */