add mib2_t to sigar_t
This commit is contained in:
parent
b5dec9dde8
commit
5a34e13959
|
@ -19,6 +19,8 @@ typedef unsigned long long int u_int64_t;
|
||||||
#include <kstat.h>
|
#include <kstat.h>
|
||||||
#include <procfs.h>
|
#include <procfs.h>
|
||||||
|
|
||||||
|
#include "get_mib2.h"
|
||||||
|
|
||||||
/* avoid -Wall warning since solaris doesnt have a prototype for this */
|
/* avoid -Wall warning since solaris doesnt have a prototype for this */
|
||||||
int getdomainname(char *, int);
|
int getdomainname(char *, int);
|
||||||
|
|
||||||
|
@ -222,6 +224,8 @@ struct sigar_t {
|
||||||
proc_exename_func_t pexename;
|
proc_exename_func_t pexename;
|
||||||
|
|
||||||
sigar_cache_t *fsdev;
|
sigar_cache_t *fsdev;
|
||||||
|
|
||||||
|
solaris_mib2_t mib2;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define kSTAT_uint(v, type) \
|
#define kSTAT_uint(v, type) \
|
||||||
|
|
|
@ -96,6 +96,9 @@ int sigar_os_open(sigar_t **sig)
|
||||||
|
|
||||||
sigar->fsdev = NULL;
|
sigar->fsdev = NULL;
|
||||||
|
|
||||||
|
SIGAR_ZERO(&sigar->mib2);
|
||||||
|
sigar->mib2.sd = -1;
|
||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue