1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)shell.h 5.5 (Berkeley) 04/30/92 11 */ 12 13 /* 14 * The follow should be set to reflect the type of system you have: 15 * JOBS -> 1 if you have Berkeley job control, 0 otherwise. 16 * SYMLINKS -> 1 if your system includes symbolic links, 0 otherwise. 17 * DIRENT -> 1 if your system has the SVR3 directory(3X) routines. 18 * SHORTNAMES -> 1 if your linker cannot handle long names. 19 * define BSD if you are running 4.2 BSD or later. 20 * define SYSV if you are running under System V. 21 * define DEBUG=1 to compile in debugging (set global "debug" to turn on) 22 * define DEBUG=2 to compile in and turn on debugging. 23 * 24 * When debugging is on, debugging info will be written to $HOME/trace and 25 * a quit signal will generate a core dump. 26 */ 27 28 29 #define JOBS 1 30 #define SYMLINKS 1 31 #define DIRENT 1 32 #define BSD 33 #define DEBUG 1 34 35 #ifdef __STDC__ 36 typedef void *pointer; 37 #ifndef NULL 38 #define NULL (void *)0 39 #endif 40 #else /* not __STDC__ */ 41 typedef char *pointer; 42 #ifndef NULL 43 #define NULL 0 44 #endif 45 #endif /* not __STDC__ */ 46 #define STATIC /* empty */ 47 #define MKINIT /* empty */ 48 49 #include <sys/cdefs.h> 50 51 extern char nullstr[1]; /* null string */ 52 53 54 #ifdef DEBUG 55 #define TRACE(param) trace param 56 #else 57 #define TRACE(param) 58 #endif 59