Rename new PLONG type to PGTOK as the conversion is more important than the
size (which is mostly undefined anyway). Submitted by: bde
This commit is contained in:
parent
9cf08dec12
commit
362d62ba07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103497
@ -147,7 +147,7 @@ static VAR var[] = {
|
||||
UINT, UIDFMT, 0},
|
||||
{"rgroup", "RGROUP", NULL, LJUST|DSIZ, rgroupname, s_rgroupname,
|
||||
USERLEN, 0, CHAR, NULL, 0},
|
||||
{"rss", "RSS", NULL, 0, kvar, NULL, 4, KOFF(ki_rssize), PLONG, "ld", 0},
|
||||
{"rss", "RSS", NULL, 0, kvar, NULL, 4, KOFF(ki_rssize), PGTOK, "ld", 0},
|
||||
{"rtprio", "RTPRIO", NULL, 0, priorityr, NULL, 7, KOFF(ki_pri), CHAR,
|
||||
NULL, 0},
|
||||
{"ruid", "RUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_ruid),
|
||||
@ -180,7 +180,7 @@ static VAR var[] = {
|
||||
PIDFMT, 0},
|
||||
{"tsid", "TSID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_tsid), UINT,
|
||||
PIDFMT, 0},
|
||||
{"tsiz", "TSIZ", NULL, 0, kvar, NULL, 4, KOFF(ki_tsize), PLONG, "ld", 0},
|
||||
{"tsiz", "TSIZ", NULL, 0, kvar, NULL, 4, KOFF(ki_tsize), PGTOK, "ld", 0},
|
||||
{"tt", "TT ", NULL, 0, tname, NULL, 4, 0, CHAR, NULL, 0},
|
||||
{"tty", "TTY", NULL, LJUST, longtname, NULL, 8, 0, CHAR, NULL, 0},
|
||||
{"ucomm", "UCOMM", NULL, LJUST, ucomm, NULL, MAXCOMLEN, 0, CHAR, NULL,
|
||||
|
@ -696,7 +696,7 @@ printval(void *bp, VAR *v)
|
||||
case KPTR:
|
||||
(void)printf(ofmt, v->width, *(u_long *)bp);
|
||||
break;
|
||||
case PLONG:
|
||||
case PGTOK:
|
||||
(void)printf(ofmt, v->width, ps_pgtok(*(u_long *)bp));
|
||||
break;
|
||||
default:
|
||||
|
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#define UNLIMITED 0 /* unlimited terminal width */
|
||||
enum type { CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR, PLONG };
|
||||
enum type { CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR, PGTOK };
|
||||
|
||||
typedef struct kinfo {
|
||||
struct kinfo_proc *ki_p; /* kinfo_proc structure */
|
||||
|
Loading…
Reference in New Issue
Block a user