platform.h 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* $Id: platform.h,v 1.4 2006/09/10 19:50:29 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. #ifdef HAS_KERN_CPTIME2
  17. struct {
  18. int64_t time[CPUSTATES];
  19. int64_t old[CPUSTATES];
  20. int64_t diff[CPUSTATES];
  21. int64_t states[CPUSTATES];
  22. int mib[3];
  23. } cp;
  24. #else
  25. struct {
  26. long time[CPUSTATES];
  27. long old[CPUSTATES];
  28. long diff[CPUSTATES];
  29. int states[CPUSTATES];
  30. } cp;
  31. #endif
  32. struct {
  33. char rawdev[SYMON_DFNAMESIZE];
  34. } df;
  35. struct ifreq ifr;
  36. int sn;
  37. };
  38. #endif