|
|
1.1 root 1: /* Copyright (c) 1979 Regents of the University of California */
2: /*
3: * This file defines certain local parameters
4: * A symbol should be defined in Makefile for conditional
5: * compilation, e.g. CORY for U.C.B. Cory Hall 11/70 and
6: * 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: * SRCHPATH The directories in the default search path
15: * MAILINTVL How often to mailcheck; more often is more expensive
16: */
17:
18: #include <pagsiz.h>
19: #define BUFSIZ BSIZE
20: #define SHELLPATH "/bin/csh"
21: #define OTHERSH "/bin/sh"
22: /*
23: * Note that the first component of SRCHPATH is set to /etc for root
24: * in the file sh.c.
25: */
26: #define SRCHPATH ".", "/usr/ucb", "/bin", "/usr/bin"
27: #define MAILINTVL 300 /* 5 minutes */
28:
29: /*
30: * NCARGS and NOFILE are from <sys/param.h> which we choose not
31: * to wholly include
32: */
33: #define NCARGS 5120 /* Max. chars in an argument list */
34:
35: /*
36: * The shell moves std in/out/diag and the old std input away from units
37: * 0, 1, and 2 so that it is easy to set up these standards for invoked
38: * commands. If possible they should go into descriptors closed by exec.
39: */
40: #define NOFILE 20 /* Max number of open files */
41: #define FSHIN 16 /* Preferred desc for shell input */
42: #define FSHOUT 17 /* ... shell output */
43: #define FSHDIAG 18 /* ... shell diagnostics */
44: #define FOLDSTD 19 /* ... old std input */
45:
46: #define V7
47:
48: #ifdef NORMAL6
49: #undef V7
50: #define V6
51: #include <retrofit.h>
52: #define NCARGS 510
53: #define NOFILE 15
54: #define FSHIN 3
55: #define FSHOUT 4
56: #define FSHDIAG 5
57: #define FOLDSTD 6
58: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.