for (ps = list_head_g; ps != NULL; ps = ps->next)
{
-
if ((ps_list_match (name, cmdline, ps)) == 0)
continue;
{
/* search for at least one match */
for (ps = list_head_g; ps != NULL; ps = ps->next)
- if (ps_list_match(task_name, NULL, ps) == 1) //!!! cmdline should be here instead of NULL
+ /* FIXME: cmdline should be here instead of NULL */
+ if (ps_list_match (task_name, NULL, ps) == 1)
break;
}
}
if (ps != NULL)
- ps_list_add (task_name, NULL, &pse); //!!! cmdline should be here instead of NULL
+ /* FIXME: cmdline should be here instead of NULL */
+ ps_list_add (task_name, NULL, &pse);
} /* for (task_list) */
if ((status = vm_deallocate (port_task_self,
case 'W': paging++; break;
}
- ps_list_add (ps.name, NULL, &pse); //!!! cmdline should be here instead of NULL
+ /* FIXME: cmdline should be here instead of NULL */
+ ps_list_add (ps.name, NULL, &pse);
}
closedir (proc);
/* Iterate through the processes in kinfo_proc */
for (i=0; i < count; i++) {
- // retrieve the arguments
+ /* retrieve the arguments */
*cmdline = '\0';
argv = kvm_getargv(kd, (const struct kinfo_proc *) &(procs[i]), 0);
if (argv) {