2 #include <kpathsea/kpathsea.h>
6 /* check a directory */
12 return stat (buff, &stats) == 0 && S_ISDIR (stats.st_mode);
15 /* make a directory */
20 fprintf(stderr, "mkdir %s error.\n", buff);
23 if (_chmod (buff, _S_IREAD | _S_IWRITE)) {
24 fprintf(stderr, "chmod %s failed.\n", buff);
31 make_dir_p(char *buff)
47 if(*p == '/' && (i > 0 && *(p-1) != ':')) {