diff options
author | green <green@FreeBSD.org> | 2001-11-26 22:21:15 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-11-26 22:21:15 +0000 |
commit | d741ed6f56790f6d4459cd3edc5ca52989829373 (patch) | |
tree | c1032133ec49d0a5bd94f26101cdf04f6159d448 /bin/ps/print.c | |
parent | d60fa5f434d39572b6ea9de4953a228e3b87d41d (diff) | |
download | FreeBSD-src-d741ed6f56790f6d4459cd3edc5ca52989829373.zip FreeBSD-src-d741ed6f56790f6d4459cd3edc5ca52989829373.tar.gz |
Add LOMAC options (the "Z" flag in both cases) to display extra information
in ls(1) and ps(1).
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r-- | bin/ps/print.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 471f3fe..6212295 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)); +} |