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
BUFSIZ
defined in line
25; used 43 times
- in line 24
- in /usr/src/ucb/oldcsh/sh.dol.c line
106-108(2),
541(3),
560-565(2),
588,
601-602(2),
612,
663-670(4)
- in /usr/src/ucb/oldcsh/sh.exec.c line
244
- in /usr/src/ucb/oldcsh/sh.func.c line
126,
515
- in /usr/src/ucb/oldcsh/sh.glob.c line
173,
223,
567,
578,
618,
662,
729
- in /usr/src/ucb/oldcsh/sh.h line
188
- in /usr/src/ucb/oldcsh/sh.lex.c line
147,
155,
432,
688,
707,
1137,
1149,
1158-1166(4),
1173,
1188-1194(3),
1247
FSHIN
defined in line
82; used 2 times
V6
defined in line
78; used 16 times
V7
defined in line
62; used 4 times
VFORK
defined in line
30; used 18 times
- in /usr/src/ucb/oldcsh/sh.exec.c line
37,
83,
100,
106,
116-125(3),
132-135(2),
286
- in /usr/src/ucb/oldcsh/sh.h line
410
- in /usr/src/ucb/oldcsh/sh.init.c line
47,
86
- in /usr/src/ucb/oldcsh/sh.sem.c line
18,
122-127(2),
205,
289
Usage of this include