platform.h 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* $Id: platform.h,v 1.8 2007/05/12 16:46:27 dijkstra Exp $ */
  2. #ifndef _CONF_OPENBSD_H
  3. #define _CONF_OPENBSD_H
  4. #include "conf.h"
  5. #include <sys/dkstat.h>
  6. #include <sys/queue.h>
  7. #include <sys/types.h>
  8. #include <sys/socket.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. union stream_parg {
  16. struct {
  17. long time1[CPUSTATES];
  18. int64_t time2[CPUSTATES];
  19. int64_t old[CPUSTATES];
  20. int64_t diff[CPUSTATES];
  21. int64_t states[CPUSTATES];
  22. int mib[3];
  23. int miblen;
  24. } cp;
  25. struct {
  26. char rawdev[SYMON_DFNAMESIZE];
  27. } df;
  28. struct ifreq ifr;
  29. struct {
  30. #ifndef HAS_SENSORDEV
  31. int mib[3];
  32. #else
  33. int mib[5];
  34. #endif
  35. } sn;
  36. };
  37. #endif