summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2000-08-18 17:40:24 +0000
committerniklas <niklas@openbsd.org>2000-08-18 17:40:24 +0000
commitc9b7aedac429461a65cca57430bb73815010e7d7 (patch)
tree7956a2d822e2fee0047b576aa17a3eb3fc3cc3b8
parentRemove comment that refers to a NOTE that was removed yesterday (diff)
downloadwireguard-openbsd-c9b7aedac429461a65cca57430bb73815010e7d7.tar.xz
wireguard-openbsd-c9b7aedac429461a65cca57430bb73815010e7d7.zip
Stupid Linux redefined SBRK semantics
-rw-r--r--sys/compat/linux/linux_termios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_termios.c b/sys/compat/linux/linux_termios.c
index 4dd23897436..5000c744ddf 100644
--- a/sys/compat/linux/linux_termios.c
+++ b/sys/compat/linux/linux_termios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_termios.c,v 1.7 2000/08/18 14:56:59 niklas Exp $ */
+/* $OpenBSD: linux_termios.c,v 1.8 2000/08/18 17:40:24 niklas Exp $ */
/* $NetBSD: linux_termios.c,v 1.3 1996/04/05 00:01:54 christos Exp $ */
/*
@@ -646,7 +646,7 @@ linux_ioctl_termios(p, uap, retval)
SCARG(&ia, com) = TIOCNOTTY;
break;
case LINUX_TCSBRK:
- SCARG(&ia, com) = TIOCSBRK;
+ SCARG(&ia, com) = SCARG(uap, data) ? TIOCDRAIN : TIOCSBRK;
break;
case LINUX_TCXONC:
switch ((int)SCARG(uap, data)) {