/bin/csh/config_p.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 111 lines · 33 code · 15 blank · 63 comment · 0 complexity · faba62055a9fb8d61dccd048a297ddad MD5 · raw file

  1. /* $FreeBSD$ */
  2. /*
  3. * config.h -- configure various defines for tcsh
  4. *
  5. * All source files should #include this FIRST.
  6. *
  7. * Edit this to match your system type.
  8. */
  9. #ifndef _h_config
  10. #define _h_config
  11. /****************** System dependant compilation flags ****************/
  12. /*
  13. * POSIX This system supports IEEE Std 1003.1-1988 (POSIX).
  14. */
  15. #define POSIX
  16. /*
  17. * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  18. * job control facilities.
  19. */
  20. #define POSIXJOBS
  21. /*
  22. * VFORK This machine has a vfork().
  23. * It used to be that for job control to work, this define
  24. * was mandatory. This is not the case any more.
  25. * If you think you still need it, but you don't have vfork,
  26. * define this anyway and then do #define vfork fork.
  27. * I do this anyway on a Sun because of yellow pages brain damage,
  28. * [should not be needed under 4.1]
  29. * and on the iris4d cause SGI's fork is sufficiently "virtual"
  30. * that vfork isn't necessary. (Besides, SGI's vfork is weird).
  31. * Note that some machines eg. rs6000 have a vfork, but not
  32. * with the berkeley semantics, so we cannot use it there either.
  33. */
  34. #define VFORK
  35. /*
  36. * BSDJOBS You have BSD-style job control (both process groups and
  37. * a tty that deals correctly
  38. */
  39. #define BSDJOBS
  40. /*
  41. * BSDTIMES You have BSD-style process time stuff (like rusage)
  42. * This may or may not be true. For example, Apple Unix
  43. * (OREO) has BSDJOBS but not BSDTIMES.
  44. */
  45. #define BSDTIMES
  46. /*
  47. * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit)
  48. */
  49. #define BSDLIMIT
  50. /*
  51. * TERMIO You have struct termio instead of struct sgttyb.
  52. * This is usually the case for SYSV systems, where
  53. * BSD uses sgttyb. POSIX systems should define this
  54. * anyway, even though they use struct termios.
  55. */
  56. #define TERMIO
  57. /*
  58. * SYSVREL Your machine is SYSV based (HPUX, A/UX)
  59. * NOTE: don't do this if you are on a Pyramid -- tcsh is
  60. * built in a BSD universe.
  61. * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
  62. * you are running. Or set it to 0 if you are not SYSV based
  63. */
  64. #define SYSVREL 0
  65. /*
  66. * YPBUGS Work around Sun YP bugs that cause expansion of ~username
  67. * to send command output to /dev/null
  68. */
  69. #undef YPBUGS
  70. /****************** local defines *********************/
  71. #if defined(__FreeBSD__)
  72. #define NLS_BUGS
  73. #define BSD_STYLE_COLORLS
  74. /* Use LC_MESSAGES locale category to open the message catalog */
  75. #define MCLoadBySet NL_CAT_LOCALE
  76. #define BUFSIZE 8192
  77. #define UTMPX_FILE "/var/run/utx.active"
  78. #endif
  79. #if defined(__bsdi__)
  80. /*
  81. * _PATH_TCSHELL if you've change the installation location (vix)
  82. */
  83. #include <sys/param.h>
  84. # ifdef _BSDI_VERSION >= 199701
  85. # define _PATH_TCSHELL "/bin/tcsh"
  86. # undef SYSMALLOC
  87. # define SYSMALLOC
  88. # else
  89. # define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
  90. # endif
  91. # undef NLS
  92. # undef NLS_CATALOGS
  93. #elif defined(__APPLE__)
  94. # define SYSMALLOC
  95. #endif
  96. #endif /* _h_config */