summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-09-04 01:22:54 +0000
committerpeter <peter@FreeBSD.org>1995-09-04 01:22:54 +0000
commit136c23f685c96f47a2db6da80d7a1488c1c14582 (patch)
tree2d8089156b3f1ca1485ed01ae1e0431a03d397c0 /bin
parent791992935e57c6317ac27431773cdbf226a378de (diff)
downloadFreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.zip
FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.tar.gz
Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers that support large numbers of ports.. eg: specialix and digiboard. This does not actually change the current tty names, it just allows room for reporting more characters if the drivers use them.
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/keyword.c6
-rw-r--r--bin/ps/print.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 1c79e07..8dc8c14 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: keyword.c,v 1.4 1994/10/02 08:19:10 davidg Exp $
+ * $Id: keyword.c,v 1.5 1994/10/02 08:33:28 davidg Exp $
*/
#ifndef lint
@@ -161,7 +161,7 @@ VAR var[] = {
{"tpgid", "TPGID", NULL, 0, evar, 4, EOFF(e_tpgid), ULONG, PIDFMT},
{"tsess", "TSESS", NULL, 0, evar, 6, EOFF(e_tsess), KPTR, "x"},
{"tsiz", "TSIZ", NULL, 0, tsize, 4},
- {"tt", "TT", NULL, LJUST, tname, 3},
+ {"tt", "TT", NULL, LJUST, tname, 4},
{"tty", "TTY", NULL, LJUST, longtname, 8},
{"ucomm", "UCOMM", NULL, LJUST, ucomm, MAXCOMLEN},
{"uid", "UID", NULL, 0, evar, UIDLEN, EOFF(e_ucred.cr_uid),
@@ -248,7 +248,7 @@ VAR var[] = {
{"trs", "TRS", NULL, 0, trss, 3},
{"tsess", "TSESS", NULL, 0, evar, 6, EOFF(e_tsess), KPTR, "x"},
{"tsiz", "TSIZ", NULL, 0, tsize, 4},
- {"tt", "TT", NULL, LJUST, tname, 3},
+ {"tt", "TT", NULL, LJUST, tname, 4},
{"tty", "TTY", NULL, LJUST, longtname, 8},
{"ucomm", "UCOMM", NULL, LJUST, ucomm, MAXCOMLEN},
{"uid", "UID", NULL, 0, pvar, UIDLEN, POFF(p_uid),USHORT, UIDFMT},
diff --git a/bin/ps/print.c b/bin/ps/print.c
index cf042d7..56b98f7 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: print.c,v 1.7 1995/05/30 00:07:04 rgrimes Exp $
+ * $Id: print.c,v 1.8 1995/08/07 19:17:39 wollman Exp $
*/
#ifndef lint
@@ -327,7 +327,7 @@ tname(k, ve)
if (strncmp(ttname, "tty", 3) == 0 ||
strncmp(ttname, "cua", 3) == 0)
ttname += 3;
- (void)printf("%*.*s%c", v->width-1, v->width-1, ttname,
+ (void)printf("%-*.*s%c", v->width-1, v->width-1, ttname,
KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-');
}
}
OpenPOWER on IntegriCloud