From c0555173efe9b1a51d8ba237d94d3fc6e9407006 Mon Sep 17 00:00:00 2001 From: cem Date: Wed, 1 Jun 2016 19:54:05 +0000 Subject: ps(1): Expand variables to match expanded fields ki_flag and ki_tdflag have been 'long', not 'int', since 2000 and 2005, respectively. Submitted by: Shawn Wills Sponsored by: EMC / Isilon Storage Division --- bin/ps/keyword.c | 2 +- bin/ps/print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ps') diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index b802c37..2482490 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -95,7 +95,7 @@ static VAR var[] = { {"etimes", "ELAPSED", NULL, "elapsed-times", USER, elapseds, 0, CHAR, NULL, 0}, {"euid", "", "uid", NULL, 0, NULL, 0, CHAR, NULL, 0}, - {"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), INT, "x", 0}, + {"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), LONG, "lx", 0}, {"f2", "F2", NULL, "flags2", 0, kvar, KOFF(ki_flag2), INT, "08x", 0}, {"fib", "FIB", NULL, "fib", 0, kvar, KOFF(ki_fibnum), INT, "d", 0}, {"flags", "", "f", NULL, 0, NULL, 0, CHAR, NULL, 0}, diff --git a/bin/ps/print.c b/bin/ps/print.c index 91daa44..1cbcf62 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -211,7 +211,7 @@ logname(KINFO *k, VARENT *ve __unused) char * state(KINFO *k, VARENT *ve __unused) { - int flag, tdflags; + long flag, tdflags; char *cp, *buf; buf = malloc(16); -- cgit v1.1