147143Sbostic /*- 260698Sbostic * Copyright (c) 1991, 1993 360698Sbostic * The Regents of the University of California. All rights reserved. 447143Sbostic * 547143Sbostic * This code is derived from software contributed to Berkeley by 647143Sbostic * Kenneth Almquist. 747143Sbostic * 847143Sbostic * %sccs.include.redist.c% 947143Sbostic * 10*69272Schristos * @(#)shell.h 8.2 (Berkeley) 05/04/95 1147143Sbostic */ 1247143Sbostic 1347143Sbostic /* 1447143Sbostic * The follow should be set to reflect the type of system you have: 1547143Sbostic * JOBS -> 1 if you have Berkeley job control, 0 otherwise. 1647143Sbostic * SYMLINKS -> 1 if your system includes symbolic links, 0 otherwise. 1747143Sbostic * SHORTNAMES -> 1 if your linker cannot handle long names. 1847143Sbostic * define BSD if you are running 4.2 BSD or later. 1947143Sbostic * define SYSV if you are running under System V. 2047978Smarc * define DEBUG=1 to compile in debugging (set global "debug" to turn on) 2147978Smarc * define DEBUG=2 to compile in and turn on debugging. 2247143Sbostic * 2347143Sbostic * When debugging is on, debugging info will be written to $HOME/trace and 2447143Sbostic * a quit signal will generate a core dump. 2547143Sbostic */ 2647143Sbostic 2747143Sbostic 2847143Sbostic #define JOBS 1 2947143Sbostic #define SYMLINKS 1 3055227Smarc #ifndef BSD 3155227Smarc #define BSD 1 3255227Smarc #endif 3347978Smarc #define DEBUG 1 3447143Sbostic 3547978Smarc #ifdef __STDC__ 3647166Sbostic typedef void *pointer; 3747143Sbostic #ifndef NULL 3847143Sbostic #define NULL (void *)0 3947143Sbostic #endif 4047143Sbostic #else /* not __STDC__ */ 4147978Smarc typedef char *pointer; 4247143Sbostic #ifndef NULL 4347143Sbostic #define NULL 0 4447143Sbostic #endif 4547978Smarc #endif /* not __STDC__ */ 4647143Sbostic #define STATIC /* empty */ 4747143Sbostic #define MKINIT /* empty */ 4847143Sbostic 4947978Smarc #include <sys/cdefs.h> 5047978Smarc 5147143Sbostic extern char nullstr[1]; /* null string */ 5247143Sbostic 5347143Sbostic 5447143Sbostic #ifdef DEBUG 5547143Sbostic #define TRACE(param) trace param 5647143Sbostic #else 5747143Sbostic #define TRACE(param) 5847143Sbostic #endif 59