From 5a34e1395920b173fda10f39d62dc1a6835e0305 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 11 Mar 2005 21:30:17 +0000 Subject: [PATCH] add mib2_t to sigar_t --- src/os/solaris/sigar_os.h | 4 ++++ src/os/solaris/solaris_sigar.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/os/solaris/sigar_os.h b/src/os/solaris/sigar_os.h index bd1e1e79..7cfd3993 100644 --- a/src/os/solaris/sigar_os.h +++ b/src/os/solaris/sigar_os.h @@ -19,6 +19,8 @@ typedef unsigned long long int u_int64_t; #include #include +#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) \ diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index d6e0de74..59f44b10 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -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; }