macro and text revision (-mdoc version 3)
[unix-history] / usr / src / bin / sh / shell.h
CommitLineData
f406eb40
KB
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 *
b775bf58 10 * @(#)shell.h 5.3 (Berkeley) %G%
f406eb40
KB
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
b775bf58 28#include <sys/cdefs.h>
f406eb40
KB
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
f406eb40 40typedef void *pointer;
b775bf58
KB
41
42#ifdef __STDC__
f406eb40
KB
43#ifndef NULL
44#define NULL (void *)0
45#endif
46#else /* not __STDC__ */
f406eb40
KB
47#ifndef NULL
48#define NULL 0
49#endif
50#endif /* __STDC__ */
51#define STATIC /* empty */
52#define MKINIT /* empty */
53
54extern char nullstr[1]; /* null string */
55
56
57#ifdef DEBUG
58#define TRACE(param) trace param
59#else
60#define TRACE(param)
61#endif