1: /* $Header$ */
2:
3: /*
4: * System-dependent definitions
5: *
6: * Author: Peter J. Nicklin
7: */
8: #define FILEXIST(file) (access(file,0) ? 0 : 1)
9:
10: #ifdef V4BSD
11: #include <sys/file.h>
12: #define CREATE(name,flags,mode) open(name,flags|FCREAT,mode)
13: #define FORK() vfork()
14: #define MK_DIR(name) ((mkdir(name, 0777) != 0)?pperror(name),1:0)
15: #define OPEN(name,flags,mode) open(name,flags,mode)
16: #define RENAME(from,to) rename(from,to)
17: #define RM_DIR(name) rm_dir(name)
18: #else
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 MK_DIR(name) mk_dir(name)
25: #define OPEN(name,flags,mode) open(name,flags)
26: #define RENAME(from,to) unlink(to); link(from,to); unlink(from)
27: #define RM_DIR(name) rm_dir(name)
28: #endif
Defined macros
FORK
defined in line
23;
never used
OPEN
defined in line
25;
never used