Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ps skip "dty" just like we skip "tty", otherwise we just...



details:   https://anonhg.NetBSD.org/src/rev/0b44abe99f96
branches:  trunk
changeset: 477106:0b44abe99f96
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Oct 11 09:18:09 1999 +0000

description:
skip "dty" just like we skip "tty", otherwise we just get "dt" in ps output for all dty's

diffstat:

 bin/ps/print.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 3d3e93a3626c -r 0b44abe99f96 bin/ps/print.c
--- a/bin/ps/print.c    Mon Oct 11 09:17:22 1999 +0000
+++ b/bin/ps/print.c    Mon Oct 11 09:18:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.43 1999/07/23 08:56:14 veego Exp $ */
+/*     $NetBSD: print.c,v 1.44 1999/10/11 09:18:09 mrg Exp $   */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.43 1999/07/23 08:56:14 veego Exp $");
+__RCSID("$NetBSD: print.c,v 1.44 1999/10/11 09:18:09 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -362,7 +362,8 @@
        if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
                (void)printf("%-*s", v->width, "??");
        else {
-               if (strncmp(ttname, "tty", 3) == 0)
+               if (strncmp(ttname, "tty", 3) == 0 ||
+                   strncmp(ttname, "dty", 3) == 0)
                        ttname += 3;
                (void)printf("%*.*s%c", v->width-1, v->width-1, ttname,
                        KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-');



Home | Main Index | Thread Index | Old Index