platform.h 742 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* $Id: platform.h,v 1.6 2007/02/11 20:07:31 dijkstra Exp $ */
  2. #ifndef _CONF_FREEBSD_H
  3. #define _CONF_FREEBSD_H
  4. #include <sys/queue.h>
  5. #include <sys/types.h>
  6. #include <sys/socket.h>
  7. #include <sys/time.h>
  8. #include <sys/dkstat.h>
  9. #include <sys/resource.h>
  10. #include <net/if.h>
  11. #include <net/if_mib.h>
  12. #include "sylimits.h"
  13. #define SYMON_USER "_symon"
  14. #define SEM_ARGS (SEM_A|SEM_R)
  15. #define SA_LEN(x) ((x)->sa_len)
  16. #define SS_LEN(x) ((x)->ss_len)
  17. union stream_parg {
  18. struct {
  19. long time[CPUSTATES];
  20. long old[CPUSTATES];
  21. long diff[CPUSTATES];
  22. int states[CPUSTATES];
  23. } cp;
  24. struct {
  25. char rawdev[SYMON_DFNAMESIZE];
  26. } df;
  27. struct ifreq ifr;
  28. int sn;
  29. };
  30. #endif