]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/libexec/uucp/libunix/isdir.c
This commit was generated by cvs2svn to compensate for changes in r57844,
[FreeBSD/FreeBSD.git] / gnu / libexec / uucp / libunix / isdir.c
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 }