Klaus Demo nginx / 4a27d0f
ngx_file_access() and ngx_de_access() Igor Sysoev 15 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8080 #define ngx_is_file(sb) (S_ISREG((sb)->st_mode))
8181 #define ngx_is_link(sb) (S_ISLNK((sb)->st_mode))
8282 #define ngx_is_exec(sb) ((sb)->st_mode & S_IXUSR)
83 #define ngx_file_access(sb) ((sb)->st_mode & 0777)
8384 #define ngx_file_size(sb) (sb)->st_size
8485 #define ngx_file_mtime(sb) (sb)->st_mtime
8586 #define ngx_file_uniq(sb) (sb)->st_ino
127128 #define ngx_de_is_dir(dir) (S_ISDIR((dir)->info.st_mode))
128129 #define ngx_de_is_file(dir) (S_ISREG((dir)->info.st_mode))
129130 #define ngx_de_is_link(dir) (S_ISLNK((dir)->info.st_mode))
131 #define ngx_de_access(dir) (((dir)->info.st_mode) & 0777)
130132 #define ngx_de_size(dir) (dir)->info.st_size
131133 #define ngx_de_mtime(dir) (dir)->info.st_mtime
132134
9898 #define ngx_is_file(fi) !((fi)->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
9999 #define ngx_is_link(fi) 0
100100
101 #define ngx_file_access(fi) 0
101102
102103 #define ngx_file_size(fi) \
103104 (((off_t) (fi)->nFileSizeHigh << 32) | (fi)->nFileSizeLow)
156157 #define ngx_de_is_file(dir) \
157158 !((dir)->finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
158159 #define ngx_de_is_link(dir) 0
160 #define ngx_de_access(dir) 0
159161 #define ngx_de_size(dir) \
160162 (((off_t) (dir)->finddata.nFileSizeHigh << 32) | (dir)->finddata.nFileSizeLow)
161163