dynix.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * dynix.h
  3. *
  4. * Date Created: Sat Jan 12 10:50:50 BST 2002
  5. * Author: Patrick Hess <phess@hds.com>
  6. */
  7. #include <net-snmp/system/generic.h>
  8. /*
  9. * from s/sysv.h
  10. */
  11. #define SYSV 1
  12. /*
  13. * to make these changes work...
  14. */
  15. /*
  16. * maybe I should have used _SEQUENT_ in all this code.. dunno
  17. */
  18. #define dynix dynix
  19. #undef TOTAL_MEMORY_SYMBOL
  20. #undef MBSTAT_SYMBOL
  21. /*
  22. * Not enough alcohool in bloodstream [fmc]
  23. */
  24. #ifdef NPROC_SYMBOL
  25. #undef NPROC_SYMBOL
  26. #endif
  27. /*
  28. * there might be a way to get NPROC... this might work.. might not
  29. */
  30. /*
  31. * #define NPROC_SYMBOL "procNPROC"
  32. */
  33. #ifdef PROC_SYMBOL
  34. #undef PROC_SYMBOL
  35. #endif
  36. /*
  37. * These definitions date from early BSD-based headers,
  38. * and are included in modern NetBSD and OpenBSD distributions.
  39. * As such, the relevant copyright probably resides with UCB.
  40. */
  41. #ifndef TCPTV_MIN
  42. #define TCPTV_MIN (1*PR_SLOWHZ) /* minimum allowable value */
  43. #endif
  44. #ifndef TCPTV_REXMTMAX
  45. #define TCPTV_REXMTMAX (64*PR_SLOWHZ) /* max allowable REXMT value */
  46. #endif
  47. /*
  48. * some of the system headers wanna include asm code... let's not
  49. */
  50. #define __NO_ASM_MACRO 1
  51. /*
  52. * Dynix doesn't seem to set this. Guess I'll set it here
  53. */
  54. #ifndef L_SET
  55. #define L_SET SEEK_SET
  56. #endif
  57. /*
  58. * configure fails to detect these properly
  59. */
  60. /*
  61. * lives in libnsl.so
  62. */
  63. #define HAVE_GETHOSTNAME 1
  64. /*
  65. * outta place... lives in /usr/include/sys
  66. */
  67. #define HAVE_NET_IF_DL_H 1
  68. /*
  69. * got this library... dunno why configure didn't find it
  70. */
  71. #define HAVE_LIBNSL 1
  72. /*
  73. * My Dynix box has nearly 400 filesystems and well over 50 disks
  74. */
  75. /*
  76. * #define MAXDISKS 500
  77. */
  78. /*
  79. * lives in libsocket.so
  80. */
  81. #define HAVE_GETHOSTBYNAME 1
  82. /*
  83. * Might as well include this here, since a significant
  84. * number of files seem to need it. DTS
  85. */
  86. #ifdef HAVE_SYS_SELECT_H
  87. #include <sys/select.h>
  88. #endif
  89. /* define the extra mib modules that are supported */
  90. #define NETSNMP_INCLUDE_HOST_RESOURCES