summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-02 14:11:32 +0000
committerache <ache@FreeBSD.org>1994-10-02 14:11:32 +0000
commit200805db70052c918cb6285cf946eb356f3a0f2b (patch)
tree49ea5fed684861f210b8f38d2888cb8205c8a7fa /bin/ps
parentf9272a2145a60cc6ae1dcac37c08650088fc5827 (diff)
downloadFreeBSD-src-200805db70052c918cb6285cf946eb356f3a0f2b.zip
FreeBSD-src-200805db70052c918cb6285cf946eb356f3a0f2b.tar.gz
Skip 'cua' 3 chars like 'tty' 3 chars
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 8c862ee..cbbe38a 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.3 1994/10/02 08:19:12 davidg Exp $
+ * $Id: print.c,v 1.4 1994/10/02 08:33:30 davidg Exp $
*/
#ifndef lint
@@ -325,7 +325,8 @@ tname(k, ve)
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, "cua", 3) == 0)
ttname += 3;
(void)printf("%*.*s%c", v->width-1, v->width-1, ttname,
KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-');
OpenPOWER on IntegriCloud