1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley Software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)sh.local.h 5.2 (Berkeley) 6/6/85
7: */
8:
9: /*
10: * This file defines certain local parameters
11: * A symbol should be defined in Makefile for local conditional
12: * compilation, e.g. IIASA or ERNIE, to be tested here and elsewhere.
13: */
14:
15: /*
16: * Fundamental definitions which may vary from system to system.
17: *
18: * BUFSIZ The i/o buffering size; also limits word size
19: * SHELLPATH Where the shell will live; initalizes $shell
20: * MAILINTVL How often to mailcheck; more often is more expensive
21: * OTHERSH Shell for scripts which don't start with #
22: */
23:
24: #define BUFSIZ 1024 /* default buffer size */
25: #define SHELLPATH "/bin/csh"
26: #define OTHERSH "/bin/sh"
27: #define FORKSLEEP 10 /* delay loop on non-interactive fork failure */
28: #define MAILINTVL 600 /* 10 minutes */
29:
30: /*
31: * The shell moves std in/out/diag and the old std input away from units
32: * 0, 1, and 2 so that it is easy to set up these standards for invoked
33: * commands.
34: */
35: #define FSHTTY 15 /* /dev/tty when manip pgrps */
36: #define FSHIN 16 /* Preferred desc for shell input */
37: #define FSHOUT 17 /* ... shell output */
38: #define FSHDIAG 18 /* ... shell diagnostics */
39: #define FOLDSTD 19 /* ... old std input */
40:
41: #ifdef IIASA
42: #undef OTHERSH
43: #endif
44:
45: #ifdef vax
46: #define copy(to, from, size) bcopy(from, to, size)
47: #endif
48:
49: #ifdef PROF
50: #define exit(n) done(n)
51: #endif
Defined macros
BUFSIZ
defined in line
24; used 50 times
- in /usr/src/bin/csh/sh.c line
550,
811
- in /usr/src/bin/csh/sh.dol.c line
119-121(2),
298,
320,
569(3),
588-593(2),
616,
629-630(2),
640,
691-698(4)
- in /usr/src/bin/csh/sh.func.c line
526
- in /usr/src/bin/csh/sh.glob.c line
36,
216,
568,
579,
618,
681,
749
- in /usr/src/bin/csh/sh.h line
212
- in /usr/src/bin/csh/sh.lex.c line
158-163(2),
427,
685,
705,
1175,
1188,
1200,
1211-1228(7),
1257,
1272-1278(3),
1333
- in /usr/src/bin/csh/sh.set.c line
543-548(2)
FSHIN
defined in line
36; used 2 times
FSHTTY
defined in line
35; used 15 times
copy
defined in line
46; used 6 times
exit
defined in line
50; used 7 times
Usage of this include