BSD 4 release
[unix-history] / usr / src / cmd / renice.c
index afb1ac1..5c3a58e 100644 (file)
@@ -1,14 +1,14 @@
+static char *sccsid = "@(#)renice.c    4.1 (Berkeley) 10/1/80";
 #include <sys/param.h>
 #include <sys/param.h>
+#include <sys/dir.h>
+#include <sys/user.h>
 #include <sys/proc.h>
 #include <sys/proc.h>
+#include <nlist.h>
 #include <stdio.h>
 
 struct proc proc[NPROC];
 #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
 };
 
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 };
 
@@ -47,7 +47,7 @@ main(argc, argv)
                exit(1);
        }
        nlist("/vmunix", nl);
                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);
        if (addr == 0) {
                fprintf(stderr, "/vmunix: _proc not in namelist");
                exit(1);