Source-Changes-HG archive

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

[src/trunk]: src/bin/ksh ksh: Drop BSD4.3 temporary hack in tty code



details:   https://anonhg.NetBSD.org/src/rev/0a5d177214d3
branches:  trunk
changeset: 824929:0a5d177214d3
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Jun 23 00:04:20 2017 +0000

description:
ksh: Drop BSD4.3 temporary hack in tty code

diffstat:

 bin/ksh/tty.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (48 lines):

diff -r 1e47b99db487 -r 0a5d177214d3 bin/ksh/tty.c
--- a/bin/ksh/tty.c     Fri Jun 23 00:00:58 2017 +0000
+++ b/bin/ksh/tty.c     Fri Jun 23 00:04:20 2017 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: tty.c,v 1.4 2003/06/23 11:39:06 agc Exp $      */
+/*     $NetBSD: tty.c,v 1.5 2017/06/23 00:04:20 kamil Exp $    */
 
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: tty.c,v 1.4 2003/06/23 11:39:06 agc Exp $");
+__RCSID("$NetBSD: tty.c,v 1.5 2017/06/23 00:04:20 kamil Exp $");
 #endif
 
 
@@ -74,16 +74,6 @@
                        ret = -1;
 #   endif
 #  else /* HAVE_TERMIO_H */
-#   if defined(__mips) && (defined(_SYSTYPE_BSD43) || defined(__SYSTYPE_BSD43))
-       /* Under RISC/os 5.00, bsd43 environment, after a tty driver
-        * generated interrupt (eg, INTR, TSTP), all output to tty is
-        * lost until a SETP is done (there must be a better way of
-        * doing this...).
-        */
-       if (flags & TF_MIPSKLUDGE)
-               ret = ioctl(fd, TIOCSETP, &ts->sgttyb);
-       else
-#   endif /* _SYSTYPE_BSD43 */
            ret = ioctl(fd, TIOCSETN, &ts->sgttyb);
 #   ifdef TIOCGATC
        if (ioctl(fd, TIOCSATC, &ts->lchars) < 0)
@@ -138,15 +128,12 @@
                }
 #endif /* __NeXT */
 
-/* X11R5 xterm on mips doesn't set controlling tty properly - temporary hack */
-# if !defined(__mips) || !(defined(_SYSTYPE_BSD43) || defined(__SYSTYPE_BSD43))
                if (tfd < 0) {
                        tty_devtty = 0;
                        warningf(FALSE,
                                "No controlling tty (open %s: %s)",
                                devtty, strerror(errno));
                }
-# endif /* __mips  */
        }
 #else /* !__SCO__ */
        tfd = -1;



Home | Main Index | Thread Index | Old Index