xref: /titanic_52/usr/src/cmd/csh/sh.local.h (revision c2580b931007758eab8cb5ae8726ebe1588e259b)
1 /*
2  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
9 /*
10  * Copyright (c) 1980 Regents of the University of California.
11  * All rights reserved.  The Berkeley Software License Agreement
12  * specifies the terms and conditions for redistribution.
13  */
14 
15 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 /*
18  * This file defines certain local parameters
19  * A symbol should be defined in Makefile for local conditional
20  * compilation, e.g. IIASA or ERNIE, to be tested here and elsewhere.
21  */
22 
23 /*
24  * Fundamental definitions which may vary from system to system.
25  *
26  *	BUFSIZ		The i/o buffering size; also limits word size
27  *	SHELLPATH	Where the shell will live; initalizes $shell
28  *	MAILINTVL	How often to mailcheck; more often is more expensive
29  *	OTHERSH		Shell for scripts which don't start with #
30  */
31 
32 #define	BUFSIZ	1024		/* default buffer size */
33 #define	PATHSIZ	16384		/* allow longer PATH environment variables */
34 #define	SHELLPATH	"/bin/csh"
35 #define	OTHERSH		"/bin/sh"
36 #define	FORKSLEEP	10	/* delay loop on non-interactive fork failure */
37 #define	MAILINTVL	600	/* 10 minutes */
38 
39 /*
40  * The shell moves std in/out/diag and the old std input away from units
41  * 0, 1, and 2 so that it is easy to set up these standards for invoked
42  * commands.
43  */
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 #ifdef IIASA
51 #undef	OTHERSH
52 #endif
53 
54 #define	copy(to, from, size)	bcopy(from, to, size)
55 
56 #ifdef PROF
57 #define	exit(n)	done(n)
58 #endif
59