projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4 release
[unix-history]
/
usr
/
src
/
cmd
/
renice.c
diff --git
a/usr/src/cmd/renice.c
b/usr/src/cmd/renice.c
index
afb1ac1
..
5c3a58e
100644
(file)
--- a/
usr/src/cmd/renice.c
+++ b/
usr/src/cmd/renice.c
@@
-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);