Bell 32V development
[unix-history] / usr / src / cmd / uucp / anyread.c
CommitLineData
f2a74031
TL
1#include "uucp.h"
2#include <sys/types.h>
3#include <sys/stat.h>
4
5/*******
6 * anyread check if anybody can read
7 * return 0 ok: FAIL not ok
8 */
9
10anyread(file)
11char *file;
12{
13 struct stat s;
14
15 if (stat(file, &s) != 0)
16 return(FAIL);
17 if (!(s.st_mode & ANYREAD))
18 return(FAIL);
19 return(0);
20}