shell.h revision 17987
12708Swollman/*-
22708Swollman * Copyright (c) 1991, 1993
32708Swollman *	The Regents of the University of California.  All rights reserved.
42708Swollman *
52708Swollman * This code is derived from software contributed to Berkeley by
62708Swollman * Kenneth Almquist.
72708Swollman *
82708Swollman * Redistribution and use in source and binary forms, with or without
92708Swollman * modification, are permitted provided that the following conditions
102708Swollman * are met:
112708Swollman * 1. Redistributions of source code must retain the above copyright
122708Swollman *    notice, this list of conditions and the following disclaimer.
132708Swollman * 2. Redistributions in binary form must reproduce the above copyright
142708Swollman *    notice, this list of conditions and the following disclaimer in the
152708Swollman *    documentation and/or other materials provided with the distribution.
162708Swollman * 3. All advertising materials mentioning features or use of this software
172708Swollman *    must display the following acknowledgement:
189912Swollman *	This product includes software developed by the University of
199912Swollman *	California, Berkeley and its contributors.
2050476Speter * 4. Neither the name of the University nor the names of its contributors
219912Swollman *    may be used to endorse or promote products derived from this software
229912Swollman *    without specific prior written permission.
239912Swollman *
249912Swollman * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2517224Swollman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
269912Swollman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
279912Swollman * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
289912Swollman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
299912Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
309912Swollman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
319912Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
329912Swollman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3371579Sdeischen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
349912Swollman * SUCH DAMAGE.
359912Swollman *
362708Swollman *	@(#)shell.h	8.2 (Berkeley) 5/4/95
372708Swollman *	$Id: shell.h,v 1.3 1995/08/27 20:26:44 joerg Exp $
389912Swollman */
392708Swollman
402708Swollman/*
412708Swollman * The follow should be set to reflect the type of system you have:
422708Swollman *	JOBS -> 1 if you have Berkeley job control, 0 otherwise.
439912Swollman *	SYMLINKS -> 1 if your system includes symbolic links, 0 otherwise.
449912Swollman *	SHORTNAMES -> 1 if your linker cannot handle long names.
4571579Sdeischen *	define BSD if you are running 4.2 BSD or later.
4628021Sjoerg *	define SYSV if you are running under System V.
472708Swollman *	define DEBUG=1 to compile in debugging (set global "debug" to turn on)
489912Swollman *	define DEBUG=2 to compile in and turn on debugging.
499912Swollman *
509912Swollman * When debugging is on, debugging info will be written to $HOME/trace and
512708Swollman * a quit signal will generate a core dump.
522708Swollman */
532708Swollman
549912Swollman
552708Swollman#define JOBS 1
562708Swollman#define SYMLINKS 1
572708Swollman#ifndef BSD
5817224Swollman#define BSD 1
5917224Swollman#endif
6017224Swollman#ifndef DEBUG
6117224Swollman#define DEBUG 1
622708Swollman#endif
6317224Swollman
642708Swollman#ifdef __STDC__
659912Swollmantypedef void *pointer;
669912Swollman#ifndef NULL
672708Swollman#define NULL (void *)0
682708Swollman#endif
692708Swollman#else /* not __STDC__ */
702708Swollmantypedef char *pointer;
712708Swollman#ifndef NULL
722708Swollman#define NULL 0
732708Swollman#endif
742708Swollman#endif /*  not __STDC__ */
7517224Swollman#define STATIC	/* empty */
7617224Swollman#define MKINIT	/* empty */
7717224Swollman
7817224Swollman#include <sys/cdefs.h>
792708Swollman
8053940Sacheextern char nullstr[1];		/* null string */
8172168Sphantom
8253940Sache
839912Swollman#ifdef DEBUG
842708Swollman#define TRACE(param)	shtrace param
8553940Sache#else
8653940Sache#define TRACE(param)
872708Swollman#endif
889912Swollman