1: /* $Header: system.h,v 1.5 85/06/27 12:10:18 nicklin Exp $ */
2:
3: /*
4: * System-dependent definitions
5: *
6: * Author: Peter J. Nicklin
7: */
8: #define FILEXIST(file) (access(file,0) ? 0 : 1)
9: #define FILEWRITE(file) (access(file,6) ? 0 : 1)
10:
11: #ifdef V4BSD
12: #include <sys/file.h>
13: #define CREATE(name,flags,mode) open(name,flags|FCREAT,mode)
14: #define FORK() vfork()
15: #define OPEN(name,flags,mode) open(name,flags,mode)
16: #define RENAME(from,to) rename(from,to)
17: #else
18: #define NBBY 8
19: #define O_RDONLY 000
20: #define O_WRONLY 001
21: #define O_RDWR 002
22: #define CREATE(name,flags,mode) creat(name,mode)
23: #define FORK() fork()
24: #define OPEN(name,flags,mode) open(name,flags)
25: #define RENAME(from,to) unlink(to); link(from,to); unlink(from)
26: #endif
Defined macros
FORK
defined in line
23;
never used
NBBY
defined in line
18;
never used
OPEN
defined in line
24; used 1 times
Usage of this include