platform.h 726 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <net/if.h>
  8. #include <stdio.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. #define MAX_PATH_LEN FILENAME_MAX
  18. union stream_parg {
  19. struct {
  20. int64_t time[CPUSTATES];
  21. int64_t old[CPUSTATES];
  22. int64_t diff[CPUSTATES];
  23. int64_t states[CPUSTATES];
  24. } cp;
  25. struct {
  26. char rawdev[SYMON_DFNAMESIZE];
  27. } df;
  28. struct ifdatareq ifr;
  29. int sn;
  30. int smart;
  31. };
  32. #endif