1 /* Copy config.h-dist to config.h and edit config.h, don't edit this file */
4 * Configuration parameters for rc. Suggested defaults are at the bottom
5 * of this file (you should probably look at those first to see if your
6 * system matches one of them; you can search for the beginning of the
7 * defaults section by looking for the string "#ifndef CUSTOM"). If you
8 * want to override the suggested defaults, define the macro CUSTOM.
13 * (Note that certain default settings redefine this macro)
14 * DEFAULTPATH the default search path that rc uses when it is started
15 * without either a $PATH or $path environment variable. You must pick
16 * something sensible for your system if you don't like the path shown
19 #define DEFAULTPATH "/usr/bin", "/bin"
22 * Define the macro NODIRENT if your system has <sys/dir.h> but not
23 * <dirent.h>. (e.g., NeXT-OS and RISCos)
28 * Define the macro SVSIGS if your system has System V signal semantics,
29 * i.e., if "slow" system calls are interrupted rather than resumed
30 * after returning from an interrupt handler. (If you are not sure what
31 * this means, see the man page for signal(2). In any case, it is probably
32 * safe to leave this macro undefined.)
37 * Define the macro NOCMDARG if you do not have /dev/fd or fifos on your
38 * system. You may also want to define this if you have broken fifos.
43 * Define TMPDIR if you need to have rc create its fifos in a directory
44 * other than /tmp. For example, if you have a Sun with /tmp mounted
45 * as a ramdisk (type "tmpfs") then you cannot use fifos in /tmp (sigh).
46 #define TMPDIR "/var/tmp"
50 * Define the macro DEVFD if your system supports /dev/fd.
55 * Define the macro NOLIMITS if your system does not support Berkeley
61 * Define the macro NOSIGCLD if your system uses SIGCLD in the System
62 * V way. (e.g., sgi's Irix)
67 * Define the macro READLINE if you want rc to call GNU readline
68 * instead of read(2) on interactive shells.
73 * Define the macro NOEXECVE if your Unix does not interpret #! in the
74 * kernel, and uncomment the EXECVE variable in the Makefile.
79 * If you want rc to default to some interpreter for files which don't
80 * have a legal #! on the first line, define the macro DEFAULTINTERP.
82 #define DEFAULTINTERP "/bin/sh"
85 * If your /bin/sh (or another program you care about) rejects environment
86 * variables with special characters in them (such as ':' or '-'), rc can
87 * put out ugly variable names using [_0-9a-zA-Z] that encode the real name;
88 * define PROTECT_ENV for this hack. (Known offenders: every sh I have tried;
89 * SunOS (silently discards), NeXT (aborts with error), SGI (aborts with
90 * error), Ultrix (sh seems to work, sh5 aborts with error))
95 * Define the macro NOECHO if you wish to omit rc's echo builtin from the
101 * Define the NOJOB if you do *not* wish rc to perform backgrounding
102 * as if it were a job-control shell; that is, if you do *not* wish
103 * it to put a command spawned in the background into a new process
104 * group. Since most systems support job control and since there are
105 * many broken programs that do not behave correctly when backgrounded
106 * in a v7 non-job-control fashion, rc by default performs a job-
107 * control-like backgrounding.
111 /* Beginning of defaults section: */
116 * Suggested settings for Sun, NeXT and sgi (machines here at TAMU):
119 #ifdef NeXT /* Used on NextOS 2.1 */
125 #ifdef sgi /* Used on Irix 3.3.[12] */
130 #define DEFAULTPATH "/usr/bsd", "/usr/sbin", "/usr/bin", "/bin", "."
133 #ifdef sun /* Used on SunOS 4.1.1 */
136 #define DEFAULTPATH "/usr/ucb", "/usr/bin", "."
140 * Suggested settings for HP300 running 4.3BSD-utah (DWS):
143 #if defined(hp300) && !defined(hpux)
146 #define DEFAULTINTERP "/bin/sh"
151 * Suggested settings for Ultrix
156 #define DEFAULTINTERP "/bin/sh" /* so /bin/true can work */
160 * Suggested settings for RISCos 4.52
164 This doesn't work without interfering with other MIPS-based
165 systems' configuration. Please do it by hand.
168 #if defined(host_mips) && defined(MIPSEB) && defined(SYSTYPE_BSD43)
174 * Suggested settings for AIX
182 * Suggested settings for OSF/1 1.0
190 * Suggested settings for Unicos XXX
197 #define DEFAULTINTERP "/bin/sh"
203 #define TMPDIR "/tmp"