summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_termios.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2000-08-18 14:56:59 +0000
committerniklas <niklas@openbsd.org>2000-08-18 14:56:59 +0000
commitbed289daebd625bf9fdfb58b078ee9c478274f4c (patch)
tree133817e785a9cf9792a4253957b67910d50dd273 /sys/compat/linux/linux_termios.c
parentcorrect postfix example; PR#1366; loict@bougon.net (diff)
downloadwireguard-openbsd-bed289daebd625bf9fdfb58b078ee9c478274f4c.tar.xz
wireguard-openbsd-bed289daebd625bf9fdfb58b078ee9c478274f4c.zip
Add TCSBRK emulation. bug reported by sparud@crt.se
Diffstat (limited to 'sys/compat/linux/linux_termios.c')
-rw-r--r--sys/compat/linux/linux_termios.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_termios.c b/sys/compat/linux/linux_termios.c
index 0867d932175..4dd23897436 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.6 1999/07/18 00:12:04 deraadt Exp $ */
+/* $OpenBSD: linux_termios.c,v 1.7 2000/08/18 14:56:59 niklas Exp $ */
/* $NetBSD: linux_termios.c,v 1.3 1996/04/05 00:01:54 christos Exp $ */
/*
@@ -645,6 +645,9 @@ linux_ioctl_termios(p, uap, retval)
case LINUX_TIOCNOTTY:
SCARG(&ia, com) = TIOCNOTTY;
break;
+ case LINUX_TCSBRK:
+ SCARG(&ia, com) = TIOCSBRK;
+ break;
case LINUX_TCXONC:
switch ((int)SCARG(uap, data)) {
case LINUX_TCOOFF: