summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-17 02:52:44 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-17 02:52:44 +0000
commitb561096e479e036edf9bd0d01cf43172e015d481 (patch)
tree5c528cc245d18ca3cbd2496b4c2280b2b5f33430 /bin/ps/print.c
parentb58b89fc83e89a880dc747f252347d46a4dd4953 (diff)
downloadFreeBSD-src-b561096e479e036edf9bd0d01cf43172e015d481.zip
FreeBSD-src-b561096e479e036edf9bd0d01cf43172e015d481.tar.gz
Conglomerate printing of ps_pgtok'd data into a PLONG type. I couldn't think
of a better name, except PINT, but I decided to go with assuming LONG to be safe, rather than assuming INT.
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 79ca1eb..e2ae4ad 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -319,15 +319,6 @@ s_runame(KINFO *k)
void
-rss(KINFO *k, VARENT *ve)
-{
- VAR *v;
-
- v = ve->var;
- (void)printf("%*ld", v->width, (long)ps_pgtok(k->ki_p->ki_rssize));
-}
-
-void
tdev(KINFO *k, VARENT *ve)
{
VAR *v;
@@ -630,15 +621,6 @@ maxrss(KINFO *k __unused, VARENT *ve)
}
void
-tsize(KINFO *k, VARENT *ve)
-{
- VAR *v;
-
- v = ve->var;
- (void)printf("%*ld", v->width, (long)ps_pgtok(k->ki_p->ki_tsize));
-}
-
-void
priorityr(KINFO *k, VARENT *ve)
{
VAR *v;
@@ -714,6 +696,9 @@ printval(void *bp, VAR *v)
case KPTR:
(void)printf(ofmt, v->width, *(u_long *)bp);
break;
+ case PLONG:
+ (void)printf(ofmt, v->width, ps_pgtok(*(u_long *)bp));
+ break;
default:
errx(1, "unknown type %d", v->type);
}
OpenPOWER on IntegriCloud