From ddc153b67977287bdac092a1b1b1f50878786ffe Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 3 Dec 2007 18:22:34 +0000 Subject: [PATCH] sigar_proc_port_get for solaris 10+ only --- src/os/solaris/solaris_sigar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 0f21e20a..52c4c701 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -2630,7 +2630,7 @@ static int find_port(sigar_t *sigar, struct ps_prochandle *phandle, while ((ent = readdir(dirp))) { int fd; - if (!isdigit(ent->d_name[0])) { + if (!sigar_isdigit(ent->d_name[0])) { continue; } fd = atoi(ent->d_name); @@ -2690,6 +2690,10 @@ int sigar_proc_port_get(sigar_t *sigar, int protocol, sigar_proc_list_t pids; int i, status, found=0; + if (sigar->solaris_version < 10) { + return SIGAR_ENOTIMPL; + } + if ((status = sigar_init_libproc(sigar)) != SIGAR_OK) { return SIGAR_ENOTIMPL; }