summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-06-16 13:55:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-06-16 13:55:04 +0000
commit0a555aacecd6c598301c0094ec28b8a3dca9f18c (patch)
tree65c14e1da5539fc8b5b4e2ebffd8a0752619c72b /sys/kern/tty.c
parentaf6f4a4afb830425725a1f5dd61576667c921ee8 (diff)
base and ports are now clean of TIOCSTI uses. The #define can now be removed.
The code was already changed to return EIO, it will now return ENOTTY since the code is deleted. ok sthen
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index d62a91e5263..3c380146368 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.140 2018/05/02 02:24:56 visa Exp $ */
+/* $OpenBSD: tty.c,v 1.141 2018/06/16 13:55:03 deraadt Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -960,9 +960,6 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
}
splx(s);
break;
- case TIOCSTI: /* simulate terminal input */
- return (EIO);
- break;
case TIOCSTOP: /* stop output, like ^S */
s = spltty();
if (!ISSET(tp->t_state, TS_TTSTOP)) {