diff options
author | ache <ache@FreeBSD.org> | 1994-10-02 14:11:32 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-02 14:11:32 +0000 |
commit | 200805db70052c918cb6285cf946eb356f3a0f2b (patch) | |
tree | 49ea5fed684861f210b8f38d2888cb8205c8a7fa | |
parent | f9272a2145a60cc6ae1dcac37c08650088fc5827 (diff) | |
download | FreeBSD-src-200805db70052c918cb6285cf946eb356f3a0f2b.zip FreeBSD-src-200805db70052c918cb6285cf946eb356f3a0f2b.tar.gz |
Skip 'cua' 3 chars like 'tty' 3 chars
-rw-r--r-- | bin/ps/print.c | 5 |
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 ? ' ' : '-'); |