add net_info.domain for unix

This commit is contained in:
Doug MacEachern 2005-07-11 20:29:38 +00:00
parent dca5d82396
commit b7c19ce5d3
1 changed files with 3 additions and 0 deletions

View File

@ -880,6 +880,9 @@ int sigar_net_info_get(sigar_t *sigar,
fclose(fp);
getdomainname(netinfo->domain, sizeof(netinfo->domain));
netinfo->domain[sizeof(netinfo->domain)-1] = '\0';
return SIGAR_OK;
}