platform.h 661 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* $Id: platform.h,v 1.4 2005/10/21 14:58:43 dijkstra Exp $ */
  2. #ifndef _CONF_FREEBSD_H
  3. #define _CONF_FREEBSD_H
  4. #include <sys/queue.h>
  5. #include <sys/socket.h>
  6. #include <sys/types.h>
  7. #include <sys/resource.h>
  8. #include <net/if.h>
  9. #include <net/if_mib.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 time[CPUSTATES];
  18. long old[CPUSTATES];
  19. long diff[CPUSTATES];
  20. int states[CPUSTATES];
  21. } cp;
  22. struct {
  23. char rawdev[SYMON_DFNAMESIZE];
  24. } df;
  25. struct ifreq ifr;
  26. int sn;
  27. };
  28. #endif