summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2018-06-16 13:55:03 +0000
committerderaadt <deraadt@openbsd.org>2018-06-16 13:55:03 +0000
commit71548ab030114afca3a1f940accef3eda90e9bd9 (patch)
treec507c46b0471e3fef9935a79e1c0ffd4e94f9e62 /sys/kern/tty.c
parentheh. bug happens so seldom, fix was not 100% (diff)
downloadwireguard-openbsd-71548ab030114afca3a1f940accef3eda90e9bd9.tar.xz
wireguard-openbsd-71548ab030114afca3a1f940accef3eda90e9bd9.zip
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)) {