platform.h 634 B

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