add mib2_t to sigar_t

This commit is contained in:
Doug MacEachern 2005-03-11 21:30:17 +00:00
parent b5dec9dde8
commit 5a34e13959
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,8 @@ typedef unsigned long long int u_int64_t;
#include <kstat.h>
#include <procfs.h>
#include "get_mib2.h"
/* avoid -Wall warning since solaris doesnt have a prototype for this */
int getdomainname(char *, int);
@ -222,6 +224,8 @@ struct sigar_t {
proc_exename_func_t pexename;
sigar_cache_t *fsdev;
solaris_mib2_t mib2;
};
#define kSTAT_uint(v, type) \

View File

@ -96,6 +96,9 @@ int sigar_os_open(sigar_t **sig)
sigar->fsdev = NULL;
SIGAR_ZERO(&sigar->mib2);
sigar->mib2.sd = -1;
return SIGAR_OK;
}