From f38169afa4606b5e3ddf026e9825c937a186d290 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 28 Aug 2005 05:59:53 +0000 Subject: [PATCH] more netware linkage fixes --- src/sigar.c | 8 +++++++- src/sigar_fileinfo.c | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index 1aa9206a..4101576a 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -1045,6 +1045,12 @@ int sigar_resource_limit_get(sigar_t *sigar, { return SIGAR_ENOTIMPL; } + +int sigar_who_list_get(sigar_t *sigar, + sigar_who_list_t *wholist) +{ + return SIGAR_ENOTIMPL; +} #else int sigar_who_list_get(sigar_t *sigar, @@ -1703,7 +1709,7 @@ SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen) sigar_log_printf(sigar, SIGAR_LOG_DEBUG, "[fqdn] unresolved using gethostbyname.h_addr_list"); -#ifndef WIN32 +#if !defined(WIN32) && !defined(NETWARE) if (!IS_FQDN(name) && /* e.g. aix gethostname is already fqdn */ (getdomainname(domain, sizeof(domain) - 1) == 0) && (domain[0] != '\0') && diff --git a/src/sigar_fileinfo.c b/src/sigar_fileinfo.c index 5689ae81..ecfca9c2 100644 --- a/src/sigar_fileinfo.c +++ b/src/sigar_fileinfo.c @@ -158,6 +158,13 @@ int sigar_file_attrs_get(sigar_t *sigar, return SIGAR_ENOTIMPL; } +int sigar_link_attrs_get(sigar_t *sigar, + const char *file, + sigar_file_attrs_t *fileattrs) +{ + return SIGAR_ENOTIMPL; +} + #elif defined(WIN32) #include