summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/libunix/exists.c
blob: 9473922f0d533c9c7007906c69d657f41a5ec03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* exists.c
   Check whether a file exists.  */

#include "uucp.h"

#include "sysdep.h"
#include "system.h"

boolean
fsysdep_file_exists (zfile)
     const char *zfile;
{
  struct stat s;

  return stat ((char *) zfile, &s) == 0;
}
OpenPOWER on IntegriCloud