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

CREATE defined in line 22; never used
FILEXIST defined in line 8; never used
FORK defined in line 23; never used
MK_DIR defined in line 24; never used
OPEN defined in line 25; never used
O_RDONLY defined in line 19; never used
O_RDWR defined in line 21; never used
O_WRONLY defined in line 20; never used
RENAME defined in line 26; never used
RM_DIR defined in line 27; never used
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 641
Valid CSS Valid XHTML 1.0 Strict