ecu_config.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*+-------------------------------------------------------------------------
  2. ecu_config.h
  3. --------------------------------------------------------------------------*/
  4. /*+:EDITS:*/
  5. /*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
  6. /*:02-26-1998-01:11-wht@menlo-SelBitMask doings moved here */
  7. /*:02-26-1998-01:10-wht@menlo-use PATH_MAX if defined */
  8. /*:12-15-1997-19:34-wht@fep-rename CFG_FilioH to CFG_FionreadInFilioH */
  9. /*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
  10. /*:09-16-1996-07:27-wht@yuriatin-add SCO_UNIX */
  11. /*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  12. /*:12-03-1995-20:01-wht@gyro-add Setuid */
  13. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  14. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  15. /*:03-12-1995-00:59-wht@kepler-ECU_MAXPN */
  16. /*:01-12-1995-15:19-wht@n4hgf-apply Andrew Chernov 8-bit clean+FreeBSD patch */
  17. /*:05-04-1994-04:38-wht@n4hgf-ECU release 3.30 */
  18. /*:01-16-1994-16:55-wht@n4hgf-added framework */
  19. #ifndef _ecu_config_h
  20. #define _ecu_config_h
  21. /*
  22. * config.c, compiled without benefit of it's own wizardry
  23. * and it's user input, must know how to use the tty
  24. */
  25. #if (defined(__NetBSD__) || defined(__FreeBSD__)) && !defined(CFG_TermiosLineio)
  26. #define CFG_TermiosLineio
  27. #endif
  28. #if defined(M_SYSV) || defined(SCO32v5)
  29. #define SCO_UNIX
  30. #endif
  31. /*
  32. * ANSI dweebery + ensure defined with '1', not just defined
  33. */
  34. #if defined(__sun__) && !defined(sun)
  35. #define sun 1
  36. #endif
  37. #if defined(__i386__) || defined(i386)
  38. #undef i386
  39. #define i386 1
  40. #endif
  41. #if defined(__SVR4__) || defined(SVR4)
  42. #undef SVR4
  43. #define SVR4 1
  44. #endif
  45. #if defined(hp9000s300) || defined(hppa) || defined(hpux) || defined(__hpux__)
  46. #undef hpux
  47. #define hpux 1
  48. #endif
  49. #if defined(__NetBSD__)
  50. #undef netbsd
  51. #define netbsd 1
  52. #endif
  53. #if defined(PATH_MAX)
  54. #define ECU_MAXPN PATH_MAX /* max pathname length */
  55. #else
  56. #define ECU_MAXPN 1024 /* max pathname length */
  57. #endif
  58. /*
  59. * setuid() vs. seteuid
  60. */
  61. #if defined(CFG_UseSeteuid)
  62. #define Setuid(uid) seteuid(uid)
  63. #else
  64. #define Setuid(uid) setuid(uid)
  65. #endif
  66. /*
  67. * the search for FIONREAD
  68. */
  69. #if defined(CFG_FionreadRdchk)
  70. #ifdef CFG_FionreadInFilioH
  71. #include <sys/filio.h>
  72. #else
  73. #ifdef CFG_FionreadInSocketH
  74. #include <sys/socket.h>
  75. #else
  76. #include <sys/ioctl.h>
  77. #endif
  78. #endif
  79. #else /* dev-sys supplied rdchk() */
  80. #define Rdchk(val) rdchk(val)
  81. #endif /* CFG_FionreadRdchk */
  82. #if defined(CFG_NeedStdlibH)
  83. #include <stdlib.h>
  84. #else
  85. char *sbrk(); /* go figure */
  86. #endif
  87. #ifdef CFG_HasFdSet
  88. #define SelBitmask CFG_FDSET
  89. #else
  90. #define SelBitmask int
  91. #endif /* CFG_HasFdSet */
  92. #endif /* _ecu_config_h */
  93. #if defined(WHT) && defined(CFG_TelnetOption) && !defined(CFG_TelnetServer)
  94. #define CFG_TelnetServer
  95. #endif
  96. /* vi: set tabstop=4 shiftwidth=4: */
  97. /* end of ecu_config.h */