csh and tcsh work

Sources of csh/sh.local.h

csh と tcsh のソース

Bill Joy

First published: October, 1978.

Copyright © 1979 Regents of the University of California.

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

To the top of this page