platform.h 723 B

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