12345678910111213141516171819202122232425262728293031323334353637 |
- /* $Id: platform.h,v 1.6 2007/02/11 20:07:31 dijkstra Exp $ */
- #ifndef _CONF_FREEBSD_H
- #define _CONF_FREEBSD_H
- #include <sys/queue.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/time.h>
- #include <sys/dkstat.h>
- #include <sys/resource.h>
- #include <net/if.h>
- #include <net/if_mib.h>
- #include "sylimits.h"
- #define SYMON_USER "_symon"
- #define SEM_ARGS (SEM_A|SEM_R)
- #define SA_LEN(x) ((x)->sa_len)
- #define SS_LEN(x) ((x)->ss_len)
- union stream_parg {
- struct {
- long time[CPUSTATES];
- long old[CPUSTATES];
- long diff[CPUSTATES];
- int states[CPUSTATES];
- } cp;
- struct {
- char rawdev[SYMON_DFNAMESIZE];
- } df;
- struct ifreq ifr;
- int sn;
- };
- #endif
|