Go to the documentation of this file.
22 #ifndef XAPIAN_INCLUDED_SAFESYSSTAT_H
23 #define XAPIAN_INCLUDED_SAFESYSSTAT_H
26 #include <sys/types.h>
32 # define S_ISDIR(ST_MODE) (((ST_MODE) & _S_IFMT) == _S_IFDIR)
35 # define S_ISREG(ST_MODE) (((ST_MODE) & _S_IFMT) == _S_IFREG)
48 inline int (mkdir)(
const char *pathname, mode_t ) {
49 return _mkdir(pathname);
57 # define S_ISDIR(ST_MODE) (((ST_MODE) & S_IFMT) == S_IFDIR)
60 # define S_ISREG(ST_MODE) (((ST_MODE) & S_IFMT) == S_IFREG)