Go to the documentation of this file.
21 #ifndef XAPIAN_INCLUDED_SAFESYSSTAT_H
22 #define XAPIAN_INCLUDED_SAFESYSSTAT_H
25 #include <sys/types.h>
31 # define S_ISDIR(ST_MODE) (((ST_MODE) & _S_IFMT) == _S_IFDIR)
34 # define S_ISREG(ST_MODE) (((ST_MODE) & _S_IFMT) == _S_IFREG)
47 inline int (mkdir)(
const char *pathname, mode_t ) {
48 return _mkdir(pathname);
56 # define S_ISDIR(ST_MODE) (((ST_MODE) & S_IFMT) == S_IFDIR)
59 # define S_ISREG(ST_MODE) (((ST_MODE) & S_IFMT) == S_IFREG)