aboutsummaryrefslogtreecommitdiff
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2001-11-26 22:21:15 +0000
committerBrian Feldman <green@FreeBSD.org>2001-11-26 22:21:15 +0000
commit7304f61f9e409b45a8d69036ef22f351fbd680d8 (patch)
treec1032133ec49d0a5bd94f26101cdf04f6159d448 /bin/ps/print.c
parent1cf5f5552bd05282b8477e8ee0eaa6aca7319a5a (diff)
downloadsrc-7304f61f9e409b45a8d69036ef22f351fbd680d8.tar.gz
src-7304f61f9e409b45a8d69036ef22f351fbd680d8.zip
Add LOMAC options (the "Z" flag in both cases) to display extra information
in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs
Notes
Notes: svn path=/head/; revision=86922
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 471f3fe3cebb..62122950cddb 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -726,3 +726,14 @@ rvar(k, ve)
else
(void)printf("%*s", v->width, "-");
}
+
+void
+lattr(k, ve)
+ KINFO *k;
+ VARENT *ve;
+{
+ VAR *v;
+
+ v = ve->var;
+ (void)printf("%-*d", (int)v->width, get_lattr(k->ki_p->ki_pid));
+}