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.4 (Berkeley) 04/12/91 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 * UDIR -> 1 if you want the shell to simulate the /u directory. 19 * ATTY -> 1 to include code for atty(1). 20 * SHORTNAMES -> 1 if your linker cannot handle long names. 21 * define BSD if you are running 4.2 BSD or later. 22 * define SYSV if you are running under System V. 23 * define DEBUG=1 to compile in debugging (set global "debug" to turn on) 24 * define DEBUG=2 to compile in and turn on debugging. 25 * 26 * When debugging is on, debugging info will be written to $HOME/trace and 27 * a quit signal will generate a core dump. 28 */ 29 30 31 #define JOBS 1 32 #define SYMLINKS 1 33 #define DIRENT 1 34 #define UDIR 0 35 #define ATTY 0 36 #define BSD 37 #define DEBUG 1 38 39 #ifdef __STDC__ 40 typedef void *pointer; 41 #ifndef NULL 42 #define NULL (void *)0 43 #endif 44 #else /* not __STDC__ */ 45 typedef char *pointer; 46 #ifndef NULL 47 #define NULL 0 48 #endif 49 #endif /* not __STDC__ */ 50 #define STATIC /* empty */ 51 #define MKINIT /* empty */ 52 53 #include <sys/cdefs.h> 54 55 extern char nullstr[1]; /* null string */ 56 57 58 #ifdef DEBUG 59 #define TRACE(param) trace param 60 #else 61 #define TRACE(param) 62 #endif 63