*/
#include <sys/user.h>
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/queue.h>
{"user", "USER", NULL, LJUST|DSIZ, uname, s_uname, USERLEN, 0, 0, NULL, NULL},
{"vsize", "", "vsz", 0, 0, NULL, 0, 0, 0, NULL, NULL},
{"vsz", "VSZ", NULL, 0, vsize, NULL, 6, 0, 0, NULL, NULL},
- {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, 6, 0, 0, NULL, NULL},
+ {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, WMESGLEN, 0, 0, NULL, NULL},
{"xstat", "XSTAT", NULL, 0, pvar, NULL, 7, POFF(exitstat), USHORT, "x", NULL},
{"", NULL, NULL, 0, NULL, NULL, 0, 0, 0, NULL, NULL},
};
*/
static char smp_header[] =
-" PID %-*.*s NICE SIZE PRES STATE CPU TIME CTIME CPU COMMAND";
+" PID %-*.*s NICE SIZE PRES STATE CPU TIME CTIME CPU COMMAND";
#define smp_Proc_format \
- "%5d %-*.*s %3d%7s %6s %7.7s %2d %6s %7s %5.2f%% %.*s"
+ "%5d %-*.*s %3d%7s %6s %8.8s %2d %6s %7s %5.2f%% %.*s"
static char up_header[] =
-" PID %-*.*s NICE SIZE PRES STATE TIME CTIME CPU COMMAND";
+" PID %-*.*s NICE SIZE PRES STATE TIME CTIME CPU COMMAND";
#define up_Proc_format \
- "%5d %-*.*s %3d%7s %6s %7.7s%.0d %7s %7s %5.2f%% %.*s"
+ "%5d %-*.*s %3d%7s %6s %8.8s%.0d %7s %7s %5.2f%% %.*s"
/* process state names for the "STATE" column of the display */
break;
case LSSLEEP:
if (LP(pp, wmesg) != NULL) {
- sprintf(status, "%.6s", LP(pp, wmesg));
+ sprintf(status, "%.8s", LP(pp, wmesg)); /* WMESGLEN */
break;
}
/* fall through */