From ecd0ad6ab8b08471f5b39490118335bae87ba061 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 18 Jan 2010 14:59:43 -0800 Subject: [PATCH] (SIGAR-199) stub sigar_arp_list_get impls --- src/os/aix/aix_sigar.c | 6 ++++++ src/os/darwin/darwin_sigar.c | 6 ++++++ src/os/hpux/hpux_sigar.c | 6 ++++++ src/os/linux/linux_sigar.c | 6 ++++++ src/os/netware/netware_sigar.c | 6 ++++++ src/os/osf1/osf1_sigar.c | 6 ++++++ src/os/solaris/solaris_sigar.c | 6 ++++++ src/os/stub/stub_sigar.c | 6 ++++++ src/os/win32/win32_sigar.c | 7 +++++++ 9 files changed, 55 insertions(+) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index 05e0c6c1..44b3c4b8 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -1921,6 +1921,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return SIGAR_OK; } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + /* derived from pidentd's k_aix432.c */ int sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pidp) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 9a9d51fe..e712768e 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -3324,6 +3324,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return SIGAR_OK; } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + #if defined(__FreeBSD__) && /*XXX*/ (__FreeBSD_version < 800000) #define _KERNEL diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 0d45399f..03823a28 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -1223,6 +1223,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return SIGAR_ENOTIMPL; } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + int sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pid) { diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 008c9bc3..c0fccd42 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -2317,6 +2317,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, (sigar_nfs_v3_t *)nfs); } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + int sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pid) { diff --git a/src/os/netware/netware_sigar.c b/src/os/netware/netware_sigar.c index 8095bce1..72b90688 100644 --- a/src/os/netware/netware_sigar.c +++ b/src/os/netware/netware_sigar.c @@ -717,3 +717,9 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, { return SIGAR_ENOTIMPL; } + +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} diff --git a/src/os/osf1/osf1_sigar.c b/src/os/osf1/osf1_sigar.c index 04fb3e92..7b629fcb 100644 --- a/src/os/osf1/osf1_sigar.c +++ b/src/os/osf1/osf1_sigar.c @@ -580,6 +580,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return SIGAR_ENOTIMPL; } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + int sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pid) { diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index cabe03f3..bacf4be6 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -2452,6 +2452,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return sigar_nfs_get(sigar, "rfsproccnt_v3", nfs_v3_names, (char *)nfs); } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + static int find_port(sigar_t *sigar, struct ps_prochandle *phandle, sigar_pid_t pid, unsigned long port) { diff --git a/src/os/stub/stub_sigar.c b/src/os/stub/stub_sigar.c index 354fb08a..0e350261 100644 --- a/src/os/stub/stub_sigar.c +++ b/src/os/stub/stub_sigar.c @@ -290,6 +290,12 @@ int sigar_nfs_server_v3_get(sigar_t *sigar, return SIGAR_ENOTIMPL; } +int sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + int sigar_proc_port_get(sigar_t *sigar, int protocol, unsigned long port, sigar_pid_t *pid) { diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 5611086c..c0af8c8b 100755 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -3191,6 +3191,13 @@ SIGAR_DECLARE(int) sigar_proc_port_get(sigar_t *sigar, return ENOENT; } +SIGAR_DECLARE(int) sigar_arp_list_get(sigar_t *sigar, + sigar_arp_list_t *arplist) +{ + return SIGAR_ENOTIMPL; +} + + #include static int sigar_who_net_sessions(sigar_t *sigar,