platform.h 658 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* $Id: platform.h,v 1.4 2005/10/21 14:58:45 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 <net/if.h>
  8. #include "sylimits.h"
  9. #define SYMON_USER "_symon"
  10. #define SEM_ARGS (IPC_W|IPC_R)
  11. #define SA_LEN(x) ((x)->sa_len)
  12. #define SS_LEN(x) ((x)->ss_len)
  13. union semun {
  14. int val;
  15. };
  16. union stream_parg {
  17. struct {
  18. u_int64_t time[CPUSTATES];
  19. u_int64_t old[CPUSTATES];
  20. u_int64_t diff[CPUSTATES];
  21. int states[CPUSTATES];
  22. } cp;
  23. struct {
  24. char rawdev[SYMON_DFNAMESIZE];
  25. } df;
  26. struct ifdatareq ifr;
  27. int sn;
  28. };
  29. #endif