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

CREATE defined in line 22; never used
FILEWRITE defined in line 9; used 1 times
FORK defined in line 23; never used
NBBY defined in line 18; never used
OPEN defined in line 24; used 1 times
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 25; used 1 times

Usage of this include

Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 833
Valid CSS Valid XHTML 1.0 Strict