Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/bin/ps Pull up revision 1.44 (requested by mrg):
details: https://anonhg.NetBSD.org/src/rev/55be9d91d4c7
branches: netbsd-1-4
changeset: 469581:55be9d91d4c7
user: he <he%NetBSD.org@localhost>
date: Tue Oct 12 21:42:41 1999 +0000
description:
Pull up revision 1.44 (requested by mrg):
Make various utilities skip "dty" as well as "tty" on terminals,
so that the actually used tty is visiable instead of just 'dt'.
diffstat:
bin/ps/print.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 8428b521f9be -r 55be9d91d4c7 bin/ps/print.c
--- a/bin/ps/print.c Tue Oct 12 19:58:59 1999 +0000
+++ b/bin/ps/print.c Tue Oct 12 21:42:41 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.39 1998/07/28 18:41:59 mycroft Exp $ */
+/* $NetBSD: print.c,v 1.39.2.1 1999/10/12 21:42:41 he 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.39 1998/07/28 18:41:59 mycroft Exp $");
+__RCSID("$NetBSD: print.c,v 1.39.2.1 1999/10/12 21:42:41 he Exp $");
#endif
#endif /* not lint */
@@ -361,7 +361,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