diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-11 17:58:09 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-11 17:58:09 +0000 |
| commit | 2178b9bb496788ef1eb36979326091a678e4e0f2 (patch) | |
| tree | 5a6610e87b8380d193989c0d6fc4bc1303649cf2 /sys/dev/sio/sio.c | |
| parent | 0a247e7d30f68135bac64d45d056c7be0420d624 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
| -rw-r--r-- | sys/dev/sio/sio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 1e3312251181..f03bdbd02075 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.87 1995/04/03 10:29:14 ache Exp $ + * $Id: sio.c,v 1.88 1995/04/04 16:26:04 ache Exp $ */ #include "sio.h" @@ -1262,11 +1262,19 @@ sioioctl(dev, cmd, data, flag, p) int s; int tiocm_xxx; struct tty *tp; + struct termios term; + int oldcmd; mynor = minor(dev); com = com_addr(MINOR_TO_UNIT(mynor)); iobase = com->iobase; tp = com->tp; + term = tp->t_termios; + oldcmd = cmd; + if ((error = ttsetcompat(tp, &cmd, data, &term)) != 0) + return error; + if (cmd != oldcmd) + data = (caddr_t)&term; if (mynor & CONTROL_MASK) { struct termios *ct; |
