xref: /illumos-gate/usr/src/cmd/csh/sh.local.h (revision 7a6d80f1660abd4755c68cbd094d4a914681d26e)
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 /*
16  * This file defines certain local parameters
17  * A symbol should be defined in Makefile for local conditional
18  * compilation, e.g. IIASA or ERNIE, to be tested here and elsewhere.
19  */
20 
21 /*
22  * Fundamental definitions which may vary from system to system.
23  *
24  *	BUFSIZ		The i/o buffering size; also limits word size
25  *	SHELLPATH	Where the shell will live; initalizes $shell
26  *	MAILINTVL	How often to mailcheck; more often is more expensive
27  *	OTHERSH		Shell for scripts which don't start with #
28  */
29 
30 #define	BUFSIZ	1024		/* default buffer size */
31 #define	PATHSIZ	16384		/* allow longer PATH environment variables */
32 #define	SHELLPATH	"/bin/csh"
33 #define	OTHERSH		"/bin/sh"
34 #define	FORKSLEEP	10	/* delay loop on non-interactive fork failure */
35 #define	MAILINTVL	600	/* 10 minutes */
36 
37 /*
38  * The shell moves std in/out/diag and the old std input away from units
39  * 0, 1, and 2 so that it is easy to set up these standards for invoked
40  * commands.
41  */
42 #define	FSHTTY	15		/* /dev/tty when manip pgrps */
43 #define	FSHIN	16		/* Preferred desc for shell input */
44 #define	FSHOUT	17		/* ... shell output */
45 #define	FSHDIAG	18		/* ... shell diagnostics */
46 #define	FOLDSTD	19		/* ... old std input */
47 
48 #ifdef IIASA
49 #undef	OTHERSH
50 #endif
51 
52 #define	copy(to, from, size)	bcopy(from, to, size)
53 
54 #ifdef PROF
55 #define	exit(n)	done(n)
56 #endif
57