(SIGAR-199) stub sigar_arp_list_get impls

This commit is contained in:
Doug MacEachern 2010-01-18 14:59:43 -08:00
parent 6bea72a540
commit ecd0ad6ab8
9 changed files with 55 additions and 0 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;
}

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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 <lm.h>
static int sigar_who_net_sessions(sigar_t *sigar,