platform.h 868 B

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