refactor so netif list/config codes can be used on netware too

This commit is contained in:
Doug MacEachern committed 2005-09-03 01:34:20 +00:00
1 parent 53b79a9f76
commit 1cf65abe89
5 files changed
+296 -271

No files matched your search

+7
View File
@@ -66,6 +66,9 @@
/* cpu ticks to seconds */
#define SIGAR_TICK2SEC(s) ((s) / sigar->ticks)
#define IFTYPE_LO 2
#define IFTYPE_ETH 3
#define SIGAR_LAST_PROC_EXPIRE 2
#define SIGAR_FS_MAX 10
@@ -212,4 +215,8 @@ int sigar_group_name_get(sigar_t *sigar, int gid, char *buf, int buflen);
fsusage->disk_read_bytes = fsusage->disk_write_bytes = \
fsusage->disk_queue = SIGAR_FIELD_NOTIMPL;
#if defined(WIN32) || defined(NETWARE)
int sigar_get_iftype(const char *name, int *type, int *inst);
#endif
#endif