From 6b9e45eebb0b58186b5193b23168073b67389c98 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 30 Sep 2006 17:13:10 +0000 Subject: [PATCH] fillin freebsd sys_info fields --- src/os/darwin/darwin_sigar.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index efaf2823..74574e56 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -39,6 +39,7 @@ #include #include #include +#include #endif #include @@ -2233,6 +2234,16 @@ int sigar_os_sys_info_get(sigar_t *sigar, sysinfo->vendor_name, sysinfo->vendor_code_name); #else #endif + SIGAR_SSTRCPY(sysinfo->name, "FreeBSD"); + SIGAR_SSTRCPY(sysinfo->vendor_name, sysinfo->name); + SIGAR_SSTRCPY(sysinfo->vendor, sysinfo->name); + SIGAR_SSTRCPY(sysinfo->vendor_version, + sysinfo->version); + + snprintf(sysinfo->description, + sizeof(sysinfo->description), + "%s %s", + sysinfo->name, sysinfo->vendor_version); return SIGAR_OK; }