summaryrefslogtreecommitdiff
path: root/bin/ps/keyword.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-01-07 05:38:13 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-01-07 05:38:13 +0000
commit9c22654341479292c2a155db5eff66302470f976 (patch)
tree63408cc0f48f4f1d3e63b5d6a2aafd56590dc9c6 /bin/ps/keyword.c
parenta279f2f3d85c99cdfafe036c75959e20e475e29d (diff)
Add rtable id and thread id to struct kinfo_proc (and fix process id)
and add an 'rtableid' keyword to ps. Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information. Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major Socket splice info and corrections from bluhm@ "Lovely" deraadt@
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r--bin/ps/keyword.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 9a6457b6772..df81cdf948b 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyword.c,v 1.34 2011/12/29 17:13:55 guenther Exp $ */
+/* $OpenBSD: keyword.c,v 1.35 2012/01/07 05:38:12 guenther Exp $ */
/* $NetBSD: keyword.c,v 1.12.6.1 1996/05/30 21:25:13 cgd Exp $ */
/*-
@@ -146,6 +146,7 @@ VAR var[] = {
{"rss", "RSS", NULL, 0, p_rssize, 5},
{"rssize", "", "rsz"},
{"rsz", "RSZ", NULL, 0, rssize, 4},
+ {"rtable", "RTABLE", NULL, 0, pvar, 0, 0, POFF(p_rtableid), INT32, "d"},
UID("ruid", "RUID", pvar, POFF(p_ruid)),
{"ruser", "RUSER", NULL, LJUST, runame, USERLEN},
{"sess", "SESS", NULL, 0, pvar, PTRWIDTH, 0, POFF(p_sess), UINT64, "llx"},