home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume30 / rc / part06 / config.h-dist next >
Encoding:
Text File  |  1992-05-30  |  5.0 KB  |  205 lines

  1. /* Copy config.h-dist to config.h and edit config.h, don't edit this file */
  2.  
  3. /*
  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.
  9. #define CUSTOM
  10.  */
  11.  
  12. /*
  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
  17.  * below.
  18.  */
  19. #define DEFAULTPATH "/usr/ucb", "/usr/bin", "/bin", "."
  20.  
  21. /*
  22.  * Define the macro NODIRENT if your system has <sys/dir.h> but not
  23.  * <dirent.h>. (e.g., NeXT-OS and RISCos)
  24. #define NODIRENT
  25.  */
  26.  
  27. /*
  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.)
  33. #define SVSIGS
  34.  */
  35.  
  36. /*
  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.
  39. #define NOCMDARG
  40.  */
  41.  
  42. /*
  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"
  47.  */
  48.  
  49. /*
  50.  * Define the macro DEVFD if your system supports /dev/fd.
  51. #define DEVFD
  52.  */
  53.  
  54. /*
  55.  * Define the macro NOLIMITS if your system does not support Berkeley
  56.  * limits.
  57. #define NOLIMITS
  58.  */
  59.  
  60. /*
  61.  * Define the macro NOSIGCLD if your system uses SIGCLD in the System
  62.  * V way. (e.g., sgi's Irix)
  63. #define NOSIGCLD
  64.  */
  65.  
  66. /*
  67.  * Define the macro READLINE if you want rc to call GNU readline
  68.  * instead of read(2) on interactive shells.
  69. #define READLINE
  70.  */
  71.  
  72. /*
  73.  * Define the macro NOEXECVE if your Unix does not interpret #! in the
  74.  * kernel, and uncomment the EXECVE variable in the Makefile.
  75. #define NOEXECVE
  76.  */
  77.  
  78. /*
  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.
  81. #define DEFAULTINTERP "/bin/sh"
  82.  */
  83.  
  84. /*
  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))
  91. #define PROTECT_ENV
  92.  */
  93.  
  94. /*
  95.  * Define the macro NOECHO if you wish to omit rc's echo builtin from the
  96.  * compile.
  97. #define NOECHO
  98.  */
  99.  
  100. /*
  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.
  108. #define NOJOB
  109.  */
  110.  
  111. /* Beginning of defaults section: */
  112.  
  113. #ifndef CUSTOM
  114.  
  115. /*
  116.  * Suggested settings for Sun, NeXT and sgi (machines here at TAMU):
  117.  */
  118.  
  119. #ifdef NeXT        /* Used on NextOS 2.1 */
  120. #define NODIRENT
  121. #define    PROTECT_ENV
  122. #define NOCMDARG
  123. #endif
  124.  
  125. #ifdef sgi        /* Used on Irix 3.3.[12] */
  126. #define SVSIGS
  127. #define NOSIGCLD
  128. #define    PROTECT_ENV
  129. #undef DEFAULTPATH
  130. #define DEFAULTPATH "/usr/bsd", "/usr/sbin", "/usr/bin", "/bin", "."
  131. #endif
  132.  
  133. #ifdef sun        /* Used on SunOS 4.1.1 */
  134. #define PROTECT_ENV
  135. #undef DEFAULTPATH
  136. #define DEFAULTPATH "/usr/ucb", "/usr/bin", "."
  137. #endif
  138.  
  139. /*
  140.  * Suggested settings for HP300 running 4.3BSD-utah (DWS):
  141.  */
  142.  
  143. #if defined(hp300) && !defined(hpux)
  144. #define NODIRENT
  145. #define NOCMDARG
  146. #define DEFAULTINTERP "/bin/sh"
  147. #define PROTECT_ENV
  148. #endif
  149.  
  150. /*
  151.  * Suggested settings for Ultrix
  152.  */
  153.  
  154. #ifdef ultrix
  155. #define PROTECT_ENV
  156. #define DEFAULTINTERP "/bin/sh"    /* so /bin/true can work */
  157. #endif
  158.  
  159. /*
  160.  * Suggested settings for RISCos 4.52
  161.  */
  162.  
  163. /*
  164.    This doesn't work without interfering with other MIPS-based
  165.    systems' configuration. Please do it by hand.
  166. */
  167.  
  168. #if defined(host_mips) && defined(MIPSEB) && defined(SYSTYPE_BSD43)
  169. #define NODIRENT
  170. #define PROTECT_ENV
  171. #endif
  172.  
  173. /*
  174.  * Suggested settings for AIX
  175.  */
  176.  
  177. #ifdef _AIX
  178. #define PROTECT_ENV
  179. #endif
  180.  
  181. /*
  182.  * Suggested settings for OSF/1 1.0
  183.  */
  184.  
  185. #ifdef OSF1
  186. #define PROTECT_ENV
  187. #endif
  188.  
  189. /*
  190.  * Suggested settings for Unicos XXX
  191.  */
  192.  
  193. #ifdef cray
  194. #define PROTECT_ENV
  195. #define NOLIMITS
  196. #define word _word
  197. #define DEFAULTINTERP "/bin/sh"
  198. #endif
  199.  
  200. #endif /* CUSTOM */
  201.  
  202. #ifndef TMPDIR
  203. #define TMPDIR "/tmp"
  204. #endif
  205.