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