xref: /original-bsd/bin/sh/shell.h (revision acda45c0)
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.3 (Berkeley) 03/08/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  *	SHORTNAMES -> 1 if your linker cannot handle long names.
20  *	define BSD if you are running 4.2 BSD or later.
21  *	define SYSV if you are running under System V.
22  *	define DEBUG to 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 #include <sys/cdefs.h>
29 
30 #define JOBS 1
31 #define SYMLINKS 1
32 #define DIRENT 1
33 #define UDIR 0
34 #define ATTY 0
35 #define SHORTNAMES 0
36 #define BSD
37 /* #define SYSV */
38 /* #define DEBUG */
39 
40 typedef void *pointer;
41 
42 #ifdef __STDC__
43 #ifndef NULL
44 #define NULL (void *)0
45 #endif
46 #else /* not __STDC__ */
47 #ifndef NULL
48 #define NULL 0
49 #endif
50 #endif /* __STDC__ */
51 #define STATIC	/* empty */
52 #define MKINIT	/* empty */
53 
54 extern char nullstr[1];		/* null string */
55 
56 
57 #ifdef DEBUG
58 #define TRACE(param)	trace param
59 #else
60 #define TRACE(param)
61 #endif
62