+static char *sccsid = "@(#)renice.c 4.1 (Berkeley) 10/1/80";
#include <sys/param.h>
+#include <sys/dir.h>
+#include <sys/user.h>
#include <sys/proc.h>
+#include <nlist.h>
#include <stdio.h>
struct proc proc[NPROC];
-struct {
- char name[8];
- int type;
- unsigned value;
-} nl[] = {
- "_proc", 0, 0,
+struct nlist nl[] = {
+ {"_proc"}, {0}, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
exit(1);
}
nlist("/vmunix", nl);
- addr = nl[0].value;
+ addr = nl[0].n_value;
if (addr == 0) {
fprintf(stderr, "/vmunix: _proc not in namelist");
exit(1);