if (ps_proc == NULL || ps_mproc == NULL || ps_fproc == NULL)
err("Out of memory");
- if(getsysinfo(PM_PROC_NR, SI_KPROC_TAB, ps_proc) < 0) {
- fprintf(stderr, "getsysinfo() for SI_KPROC_TAB failed.\n");
+ if(minix_getkproctab(ps_proc, nr_tasks + nr_procs, 1) < 0) {
+ fprintf(stderr, "minix_getkproctab failed.\n");
exit(1);
}
#endif
retry:
- if(getsysinfo(PM_PROC_NR, SI_KPROC_TAB, proc) < 0) {
- fprintf(stderr, "getsysinfo() for SI_KPROC_TAB failed.\n");
+ if(minix_getkproctab(proc, PROCS, 1) < 0) {
+ fprintf(stderr, "minix_getkproctab failed.\n");
exit(1);
}
+
if (!preheated) {
preheated = 1;
memcpy(prev_proc, proc, sizeof(prev_proc));