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
BUFSIZ
defined in line
61; used 50 times
- in line 23,
60
- in /usr/src/ucb/csh/sh.dir.c line
24,
134
- in /usr/src/ucb/csh/sh.dol.c line
106-108(2),
285,
307,
565(3),
584-589(2),
612,
625-626(2),
636,
687-694(4)
- in /usr/src/ucb/csh/sh.exec.c line
253
- in /usr/src/ucb/csh/sh.func.c line
492
- in /usr/src/ucb/csh/sh.glob.c line
23,
173,
223,
580,
591,
630,
690,
758
- in /usr/src/ucb/csh/sh.h line
206
- in /usr/src/ucb/csh/sh.lex.c line
147-152(2),
430,
688,
707,
1182,
1194,
1203-1211(4),
1218,
1233-1239(3),
1292
- in /usr/src/ucb/csh/sh.set.c line
539,
545
FSHIN
defined in line
45; used 2 times
FSHTTY
defined in line
44; used 16 times
HZ
defined in line
54; used 2 times
V7
defined in line
50; used 2 times
VFORK
defined in line
66; used 16 times
Usage of this include