1: /* sh.local.h 4.1 10/9/80 */
   2: 
   3: /*
   4:  * This file defines certain local parameters
   5:  * A symbol should be defined in Makefile for local conditional
   6:  * compilation, e.g. IIASA or ERNIE, to be tested here and elsewhere.
   7:  */
   8: 
   9: /*
  10:  * Fundamental definitions which may vary from system to system.
  11:  *
  12:  *	BUFSIZ		The i/o buffering size; also limits word size
  13:  *	SHELLPATH	Where the shell will live; initalizes $shell
  14:  *	MAILINTVL	How often to mailcheck; more often is more expensive
  15:  *	HZ		Cycle of ac power
  16:  *	OTHERSH		Shell for scripts which don't start with #
  17:  */
  18: 
  19: #ifdef pdp11
  20: #include <whoami.h>
  21: #endif
  22: 
  23: #ifndef BUFSIZ
  24: #    define BUFSIZ  1024    /* default buffer size */
  25: #endif
  26: #define HZ  60      /* for division into seconds */
  27: #define SHELLPATH   "/bin/csh"
  28: #define OTHERSH     "/bin/sh"
  29: #define FORKSLEEP   10  /* delay loop on non-interactive fork failure */
  30: #define MAILINTVL   600 /* 10 minutes */
  31: 
  32: /*
  33:  * NCARGS and NOFILE are from <sys/param.h> which we choose not
  34:  * to wholly include
  35:  */
  36: #define NCARGS  5120        /* Max. chars in an argument list */
  37: 
  38: /*
  39:  * The shell moves std in/out/diag and the old std input away from units
  40:  * 0, 1, and 2 so that it is easy to set up these standards for invoked
  41:  * commands.  If possible they should go into descriptors closed by exec.
  42:  */
  43: #define NOFILE  20      /* Max number of open files */
  44: #define FSHTTY  15      /* /dev/tty when manip pgrps */
  45: #define FSHIN   16      /* Preferred desc for shell input */
  46: #define FSHOUT  17      /* ... shell output */
  47: #define FSHDIAG 18      /* ... shell diagnostics */
  48: #define FOLDSTD 19      /* ... old std input */
  49: 
  50: #define V7
  51: 
  52: #ifdef IIASA
  53: #undef  HZ
  54: #define HZ  60
  55: #undef  OTHERSH
  56: #endif
  57: 
  58: #ifdef VMUNIX
  59: #include <pagsiz.h>
  60: #undef BUFSIZ
  61: #define BUFSIZ  BSIZE
  62: #define VFORK
  63: #endif
  64: 
  65: #ifdef  VIRUS_VFORK
  66: #define VFORK
  67: #endif

Defined macros

FOLDSTD defined in line 48; used 2 times
FORKSLEEP defined in line 29; used 1 times
FSHDIAG defined in line 47; used 4 times
FSHIN defined in line 45; used 2 times
FSHOUT defined in line 46; used 4 times
HZ defined in line 54; used 2 times
MAILINTVL defined in line 30; used 1 times
NCARGS defined in line 36; used 3 times
NOFILE defined in line 43; used 2 times
OTHERSH defined in line 28; used 4 times
SHELLPATH defined in line 27; used 3 times
V7 defined in line 50; used 2 times
VFORK defined in line 66; used 16 times

Usage of this include

Last modified: 1982-12-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 697
Valid CSS Valid XHTML 1.0 Strict