1: /*	@(#)sh.local.h	2.1	SCCS id keyword	*/
   2: /* Copyright (c) 1980 Regents of the University of California */
   3: /*
   4:  * This file defines certain local parameters
   5:  * A symbol should be defined in Makefile for conditional
   6:  * compilation, e.g. CORY for U.C.B. Cory Hall 11/70 and
   7:  * tested here and elsewhere.
   8:  */
   9: 
  10: /*
  11:  * Fundamental definitions which may vary from system to system.
  12:  *
  13:  *	BUFSIZ		The i/o buffering size; also limits word size
  14:  *	SHELLPATH	Where the shell will live; initalizes $shell
  15:  *	SRCHPATH	The directories in the default search path
  16:  *	MAILINTVL	How often to mailcheck; more often is more expensive
  17:  */
  18: 
  19: #ifdef VMUNIX
  20: #include <pagsiz.h>
  21: #define BUFSIZ      BSIZE
  22: #define VFORK
  23: #else
  24: # ifndef BUFSIZ
  25: #  define BUFSIZ        512
  26: # endif
  27: #endif
  28: 
  29: #ifdef  VIRUS_VFORK
  30: #define VFORK
  31: #endif
  32: 
  33: #define SHELLPATH   "/bin/oldcsh"
  34: #define OTHERSH     "/bin/sh"
  35: /*
  36:  * Note that the first component of SRCHPATH is set to /etc for root
  37:  * in the file sh.c.
  38:  *
  39:  * Note also that the SRCHPATH is meaningless unless you are on a v6
  40:  * system since the default path will be imported from the environment.
  41:  */
  42: #define SRCHPATH    ".", "/usr/ucb", "/bin", "/usr/bin"
  43: #define MAILINTVL   300             /* 10 minutes */
  44: 
  45: /*
  46:  * NCARGS and NOFILE are from <sys/param.h> which we choose not
  47:  * to wholly include
  48:  */
  49: #define NCARGS  5120        /* Max. chars in an argument list */
  50: 
  51: /*
  52:  * The shell moves std in/out/diag and the old std input away from units
  53:  * 0, 1, and 2 so that it is easy to set up these standards for invoked
  54:  * commands.  If possible they should go into descriptors closed by exec.
  55:  */
  56: #define NOFILE  20      /* Max number of open files */
  57: #define FSHIN   16      /* Preferred desc for shell input */
  58: #define FSHOUT  17      /* ... shell output */
  59: #define FSHDIAG 18      /* ... shell diagnostics */
  60: #define FOLDSTD 19      /* ... old std input */
  61: 
  62: #define V7
  63: 
  64: #ifdef  V69
  65: #undef  V7
  66: #define V6
  67: #include <retrofit.h>
  68: #define NCARGS  3100
  69: #define NOFILE  15
  70: #define FSHIN   3
  71: #define FSHOUT  4
  72: #define FSHDIAG 5
  73: #define FOLDSTD 6
  74: #endif
  75: 
  76: #ifdef  NORMAL6
  77: #undef  V7
  78: #define V6
  79: #include <retrofit.h>
  80: #define NCARGS  510
  81: #define NOFILE  15
  82: #define FSHIN   3
  83: #define FSHOUT  4
  84: #define FSHDIAG 5
  85: #define FOLDSTD 6
  86: #endif
  87: 
  88: #ifdef  CC
  89: #define NCARGS  5120
  90: #endif

Defined macros

FOLDSTD defined in line 85; used 2 times
FSHDIAG defined in line 84; used 2 times
FSHIN defined in line 82; used 2 times
FSHOUT defined in line 83; used 2 times
MAILINTVL defined in line 43; used 1 times
NCARGS defined in line 89; used 3 times
NOFILE defined in line 81; used 2 times
OTHERSH defined in line 34; used 3 times
SHELLPATH defined in line 33; used 3 times
SRCHPATH defined in line 42; used 1 times
V7 defined in line 62; used 4 times

Usage of this include

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