Mercurial > hg > nginx
view 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 |
line wrap: on
line source
#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_ */