diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-04-10 03:21:00 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-04-10 03:21:00 +0000 |
commit | ff2998acd8d7dd47cb849ba5efd6f2f2b46423af (patch) | |
tree | 7c5fe667dbfd41fa720d0690392d481119fa2530 /bin/ps/keyword.c | |
parent | 871b6512afed34a138792a3efbd3b870579c1c9e (diff) |
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want
"ZAP!" deraadt@
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r-- | bin/ps/keyword.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 6e98d750cb5..0b105b717e2 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keyword.c,v 1.31 2011/03/12 04:54:28 guenther Exp $ */ +/* $OpenBSD: keyword.c,v 1.32 2011/04/10 03:20:58 guenther Exp $ */ /* $NetBSD: keyword.c,v 1.12.6.1 1996/05/30 21:25:13 cgd Exp $ */ /*- @@ -60,7 +60,7 @@ int utime(), stime(), ixrss(), idrss(), isrss(); #endif /* Compute offset in common structures. */ -#define POFF(x) offsetof(struct kinfo_proc2, x) +#define POFF(x) offsetof(struct kinfo_proc, x) #define UIDFMT "u" #define UIDLEN 5 @@ -75,7 +75,7 @@ int utime(), stime(), ixrss(), idrss(), isrss(); #define USERLEN 8 -/* Bit types must match their respective entries in struct kinfo_proc2 */ +/* Bit types must match their respective entries in struct kinfo_proc */ VAR var[] = { {"%cpu", "%CPU", NULL, NLIST, pcpu, 4}, {"%mem", "%MEM", NULL, NLIST, pmem, 4}, |