aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_stat.h
blob: f42edff13871b168319e1de6a70680f90cb8f3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _NGX_STAT_H_INCLUDED_
#define _NGX_STAT_H_INCLUDED_


#include <sys/types.h>
#include <sys/stat.h>

typedef struct stat  ngx_stat_t;

#define ngx_is_dir(sb)           (S_ISDIR(sb.st_mode))

#define ngx_stat(file, sb)       stat(file, sb)
#define ngx_stat_n               "stat"

#define ngx_fstat(file, fd, sb)  fstat(fd, sb)
#define ngx_fstat_n              "stat"


#endif /* _NGX_STAT_H_INCLUDED_ */