set sys_info.arch

This commit is contained in:
Doug MacEachern 2006-09-25 01:36:03 +00:00
parent ad2533a444
commit 4f8ef532dc
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <sys/proc.h> #include <sys/proc.h>
#include <sys/swap.h> #include <sys/swap.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/systeminfo.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <dlfcn.h> #include <dlfcn.h>
@ -2299,6 +2300,8 @@ int sigar_os_sys_info_get(sigar_t *sigar,
{ {
char *vendor_version; char *vendor_version;
sysinfo(SI_ARCHITECTURE, sys_info->arch, sizeof(sys_info->arch));
SIGAR_SSTRCPY(sys_info->name, "Solaris"); SIGAR_SSTRCPY(sys_info->name, "Solaris");
SIGAR_SSTRCPY(sys_info->vendor, "Sun Microsystems"); SIGAR_SSTRCPY(sys_info->vendor, "Sun Microsystems");