platform.h 810 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _CONF_OPENBSD_H
  2. #define _CONF_OPENBSD_H
  3. #include "conf.h"
  4. #include <sys/dkstat.h>
  5. #include <sys/queue.h>
  6. #include <sys/types.h>
  7. #include <sys/socket.h>
  8. #include <net/if.h>
  9. #include "sylimits.h"
  10. #define SYMON_USER "_symon"
  11. #define SEM_ARGS (SEM_A|SEM_R)
  12. #define SA_LEN(x) ((x)->sa_len)
  13. #define SS_LEN(x) ((x)->ss_len)
  14. union stream_parg {
  15. struct {
  16. long time1[CPUSTATES];
  17. int64_t time2[CPUSTATES];
  18. int64_t old[CPUSTATES];
  19. int64_t diff[CPUSTATES];
  20. int64_t states[CPUSTATES];
  21. int mib[3];
  22. int miblen;
  23. } cp;
  24. struct {
  25. char rawdev[SYMON_DFNAMESIZE];
  26. } df;
  27. struct ifreq ifr;
  28. struct {
  29. #ifndef HAS_SENSORDEV
  30. int mib[3];
  31. #else
  32. int mib[5];
  33. #endif
  34. } sn;
  35. int smart;
  36. };
  37. #endif