platform.h 738 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _CONF_FREEBSD_H
  2. #define _CONF_FREEBSD_H
  3. #include <sys/queue.h>
  4. #include <sys/types.h>
  5. #include <sys/socket.h>
  6. #include <sys/time.h>
  7. #include <sys/dkstat.h>
  8. #include <sys/resource.h>
  9. #include <net/if.h>
  10. #include <net/if_mib.h>
  11. #include "sylimits.h"
  12. #define SYMON_USER "_symon"
  13. #define SEM_ARGS (SEM_A|SEM_R)
  14. #define SA_LEN(x) ((x)->sa_len)
  15. #define SS_LEN(x) ((x)->ss_len)
  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. } cp;
  24. struct {
  25. char rawdev[SYMON_DFNAMESIZE];
  26. } df;
  27. struct ifreq ifr;
  28. int sn;
  29. int smart;
  30. };
  31. #endif