make sigar_proc_list_get a wrapper

This commit is contained in:
Doug MacEachern committed 2007-04-22 03:54:04 +00:00
1 parent 1745dcf5d4
commit ad433cf375
11 files changed
+28 -39

No files matched your search

+2 -4
View File
@@ -618,8 +618,8 @@ static SIGAR_INLINE int proc_isthread(sigar_t *sigar, char *pidstr, int len)
return 1;
}
int sigar_proc_list_get(sigar_t *sigar,
sigar_proc_list_t *proclist)
int sigar_os_proc_list_get(sigar_t *sigar,
sigar_proc_list_t *proclist)
{
DIR *dirp = opendir(PROCP_FS_ROOT);
struct dirent *ent, dbuf;
@@ -632,8 +632,6 @@ int sigar_proc_list_get(sigar_t *sigar,
sigar->proc_signal_offset = get_proc_signal_offset();
}
sigar_proc_list_create(proclist);
while (readdir_r(dirp, &dbuf, &ent) == 0) {
if (!ent) {
break;