Module Name: src
Committed By: kamil
Date: Fri Jun 23 00:04:20 UTC 2017
Modified Files:
src/bin/ksh: tty.c
Log Message:
ksh: Drop BSD4.3 temporary hack in tty code
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/bin/ksh/tty.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/tty.c
diff -u src/bin/ksh/tty.c:1.4 src/bin/ksh/tty.c:1.5
--- src/bin/ksh/tty.c:1.4 Mon Jun 23 11:39:06 2003
+++ src/bin/ksh/tty.c Fri Jun 23 00:04:20 2017
@@ -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 @@ set_tty(fd, ts, flags)
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 @@ tty_init(init_ttystate)
}
#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;