|
|
1.1 ! root 1: /* isdir.c ! 2: See whether a file exists and is a directory. */ ! 3: ! 4: #include "uucp.h" ! 5: ! 6: #include "system.h" ! 7: #include "sysdep.h" ! 8: ! 9: boolean ! 10: fsysdep_directory (z) ! 11: const char *z; ! 12: { ! 13: struct stat s; ! 14: ! 15: if (stat ((char *) z, &s) < 0) ! 16: return FALSE; ! 17: return S_ISDIR (s.st_mode); ! 18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.