platform.h 748 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _CONF_NETBSD_H
  2. #define _CONF_NETBSD_H
  3. #define _NETBSD_SOURCE 1
  4. #include <sys/queue.h>
  5. #include <sys/sched.h>
  6. #include <sys/types.h>
  7. #include <sys/param.h>
  8. #include <net/if.h>
  9. #include <stdio.h>
  10. #include "sylimits.h"
  11. #define SYMON_USER "_symon"
  12. #define SEM_ARGS (IPC_W|IPC_R)
  13. #define SA_LEN(x) ((x)->sa_len)
  14. #define SS_LEN(x) ((x)->ss_len)
  15. union semun {
  16. int val;
  17. };
  18. #define MAX_PATH_LEN MAXPATHLEN
  19. union stream_parg {
  20. struct {
  21. int64_t time[CPUSTATES];
  22. int64_t old[CPUSTATES];
  23. int64_t diff[CPUSTATES];
  24. int64_t states[CPUSTATES];
  25. } cp;
  26. struct {
  27. char rawdev[SYMON_DFNAMESIZE];
  28. } df;
  29. struct ifdatareq ifr;
  30. int sn;
  31. int smart;
  32. };
  33. #endif