shell.h revision 1556
165862Sbrian/*-
265862Sbrian * Copyright (c) 1991, 1993
365862Sbrian *	The Regents of the University of California.  All rights reserved.
465862Sbrian *
565862Sbrian * This code is derived from software contributed to Berkeley by
665862Sbrian * Kenneth Almquist.
765862Sbrian *
865862Sbrian * Redistribution and use in source and binary forms, with or without
965862Sbrian * modification, are permitted provided that the following conditions
1065862Sbrian * are met:
1165862Sbrian * 1. Redistributions of source code must retain the above copyright
1265862Sbrian *    notice, this list of conditions and the following disclaimer.
1365862Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1465862Sbrian *    notice, this list of conditions and the following disclaimer in the
1565862Sbrian *    documentation and/or other materials provided with the distribution.
1665862Sbrian * 3. All advertising materials mentioning features or use of this software
1765862Sbrian *    must display the following acknowledgement:
1865862Sbrian *	This product includes software developed by the University of
1965862Sbrian *	California, Berkeley and its contributors.
2065862Sbrian * 4. Neither the name of the University nor the names of its contributors
2165862Sbrian *    may be used to endorse or promote products derived from this software
2265862Sbrian *    without specific prior written permission.
2365862Sbrian *
2465862Sbrian * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2565862Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2665862Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2765862Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2865862Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2965862Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3065862Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3165862Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3265862Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3365862Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3465862Sbrian * SUCH DAMAGE.
3565862Sbrian *
3665862Sbrian *	@(#)shell.h	8.1 (Berkeley) 5/31/93
3765862Sbrian */
3865862Sbrian
3965862Sbrian/*
4065862Sbrian * The follow should be set to reflect the type of system you have:
4165862Sbrian *	JOBS -> 1 if you have Berkeley job control, 0 otherwise.
4265862Sbrian *	SYMLINKS -> 1 if your system includes symbolic links, 0 otherwise.
4365862Sbrian *	SHORTNAMES -> 1 if your linker cannot handle long names.
4465862Sbrian *	define BSD if you are running 4.2 BSD or later.
4565862Sbrian *	define SYSV if you are running under System V.
4665862Sbrian *	define DEBUG=1 to compile in debugging (set global "debug" to turn on)
4765862Sbrian *	define DEBUG=2 to compile in and turn on debugging.
4865862Sbrian *
4965862Sbrian * When debugging is on, debugging info will be written to $HOME/trace and
5065862Sbrian * a quit signal will generate a core dump.
5165862Sbrian */
5265862Sbrian
5365862Sbrian
5465862Sbrian#define JOBS 1
5565862Sbrian#define SYMLINKS 1
5665862Sbrian#ifndef BSD
5765862Sbrian#define BSD 1
5865862Sbrian#endif
5965862Sbrian#define DEBUG 1
6065862Sbrian
6165862Sbrian#ifdef __STDC__
6265863Sbriantypedef void *pointer;
6365863Sbrian#ifndef NULL
6465862Sbrian#define NULL (void *)0
6565862Sbrian#endif
6665862Sbrian#else /* not __STDC__ */
6765862Sbriantypedef char *pointer;
6865862Sbrian#ifndef NULL
6965862Sbrian#define NULL 0
7065862Sbrian#endif
71134789Sbrian#endif /*  not __STDC__ */
7265862Sbrian#define STATIC	/* empty */
7365862Sbrian#define MKINIT	/* empty */
7465862Sbrian
7565862Sbrian#include <sys/cdefs.h>
7665862Sbrian
7765862Sbrianextern char nullstr[1];		/* null string */
7865862Sbrian
7965862Sbrian
8065862Sbrian#ifdef DEBUG
8165863Sbrian#define TRACE(param)	trace param
8271781Sbrian#else
8365862Sbrian#define TRACE(param)
8465862Sbrian#endif
8565862Sbrian