home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / csh / sh.local.h < prev    next >
C/C++ Source or Header  |  1980-02-17  |  2KB  |  74 lines

  1. /* Copyright (c) 1979 Regents of the University of California */
  2. /*
  3.  * This file defines certain local parameters
  4.  * A symbol should be defined in Makefile for conditional
  5.  * compilation, e.g. CORY for U.C.B. Cory Hall 11/70 and
  6.  * tested here and elsewhere.
  7.  */
  8.  
  9. /*
  10.  * Fundamental definitions which may vary from system to system.
  11.  *
  12.  *    BUFSIZ        The i/o buffering size; also limits word size
  13.  *    SHELLPATH    Where the shell will live; initalizes $shell
  14.  *    SRCHPATH    The directories in the default search path
  15.  *    MAILINTVL    How often to mailcheck; more often is more expensive
  16.  */
  17.  
  18. #define    BUFSIZ    512
  19. #define    SHELLPATH    "/bin/csh"
  20. #define    OTHERSH        "/bin/sh"
  21. /*
  22.  * Note that the first component of SRCHPATH is set to /etc for root
  23.  * in the file sh.c.
  24.  */
  25. #define    SRCHPATH    ".", "/bin", "/usr/bin"
  26. #define    MAILINTVL    600                /* 10 minutes */
  27.  
  28. /*
  29.  * NCARGS and NOFILE are from <sys/param.h> which we choose not
  30.  * to wholly include
  31.  */
  32. #define    NCARGS    5120        /* Max. chars in an argument list */
  33.  
  34. /*
  35.  * The shell moves std in/out/diag and the old std input away from units
  36.  * 0, 1, and 2 so that it is easy to set up these standards for invoked
  37.  * commands.  If possible they should go into descriptors closed by exec.
  38.  */
  39. #define    NOFILE    20        /* Max number of open files */
  40. #define    FSHIN    16        /* Preferred desc for shell input */
  41. #define    FSHOUT    17        /* ... shell output */
  42. #define    FSHDIAG    18        /* ... shell diagnostics */
  43. #define    FOLDSTD    19        /* ... old std input */
  44.  
  45. #define    V7
  46.  
  47. #ifdef    CORY
  48. #undef    V7
  49. #define V6
  50. #include <retrofit.h>
  51. #define    NCARGS    3100
  52. #define    NOFILE    15
  53. #define    FSHIN    3
  54. #define    FSHOUT    4
  55. #define    FSHDIAG    5
  56. #define    FOLDSTD    6
  57. #endif
  58.  
  59. #ifdef    NORMAL6
  60. #undef    V7
  61. #define V6
  62. #include <retrofit.h>
  63. #define    NCARGS    510
  64. #define    NOFILE    15
  65. #define    FSHIN    3
  66. #define    FSHOUT    4
  67. #define    FSHDIAG    5
  68. #define    FOLDSTD    6
  69. #endif
  70.  
  71. #ifdef    CC
  72. #define    NCARGS    5120
  73. #endif
  74.