summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-07-18 20:06:15 +0000
committerbz <bz@FreeBSD.org>2011-07-18 20:06:15 +0000
commit1a8cc2bad92d7f1305d57aac3ee82e82117aab70 (patch)
tree89c30228db716dd5aea7753adbe51af32a2e45bf /bin/ps/print.c
parenta9ea37dda1816fb8e967e3825b2e7a71905e8cbc (diff)
downloadFreeBSD-src-1a8cc2bad92d7f1305d57aac3ee82e82117aab70.zip
FreeBSD-src-1a8cc2bad92d7f1305d57aac3ee82e82117aab70.tar.gz
Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.
Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib)
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 02c6112..7d1d190 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -136,7 +136,7 @@ command(KINFO *k, VARENT *ve)
(void)printf("%s", k->ki_d.prefix);
(void)printf("%s", k->ki_p->ki_comm);
if (showthreads && k->ki_p->ki_numthreads > 1)
- (void)printf("/%s", k->ki_p->ki_ocomm);
+ (void)printf("/%s", k->ki_p->ki_tdname);
} else
(void)printf("%-*s", v->width, k->ki_p->ki_comm);
return;
@@ -190,7 +190,7 @@ command(KINFO *k, VARENT *ve)
void
ucomm(KINFO *k, VARENT *ve)
{
- char tmpbuff[COMMLEN + OCOMMLEN + 2];
+ char tmpbuff[COMMLEN + TDNAMLEN + 2];
VAR *v;
v = ve->var;
@@ -199,12 +199,12 @@ ucomm(KINFO *k, VARENT *ve)
(void)printf("%s", k->ki_d.prefix);
(void)printf("%s", k->ki_p->ki_comm);
if (showthreads && k->ki_p->ki_numthreads > 1)
- printf("/%s", k->ki_p->ki_ocomm);
+ printf("/%s", k->ki_p->ki_tdname);
} else {
bzero(tmpbuff, sizeof(tmpbuff));
if (showthreads && k->ki_p->ki_numthreads > 1)
sprintf(tmpbuff, "%s/%s", k->ki_p->ki_comm,
- k->ki_p->ki_ocomm);
+ k->ki_p->ki_tdname);
else
sprintf(tmpbuff, "%s", k->ki_p->ki_comm);
(void)printf("%-*s", v->width, tmpbuff);
@@ -218,7 +218,7 @@ tdnam(KINFO *k, VARENT *ve)
v = ve->var;
if (showthreads && k->ki_p->ki_numthreads > 1)
- (void)printf("%-*s", v->width, k->ki_p->ki_ocomm);
+ (void)printf("%-*s", v->width, k->ki_p->ki_tdname);
else
(void)printf("%-*s", v->width, " ");
}
@@ -943,12 +943,12 @@ loginclass(KINFO *k, VARENT *ve)
int
s_comm(KINFO *k)
{
- char tmpbuff[COMMLEN + OCOMMLEN + 2];
+ char tmpbuff[COMMLEN + TDNAMLEN + 2];
bzero(tmpbuff, sizeof(tmpbuff));
if (showthreads && k->ki_p->ki_numthreads > 1)
sprintf(tmpbuff, "%s/%s", k->ki_p->ki_comm,
- k->ki_p->ki_ocomm);
+ k->ki_p->ki_tdname);
else
sprintf(tmpbuff, "%s", k->ki_p->ki_comm);
return (strlen(tmpbuff));
OpenPOWER on IntegriCloud