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