mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Call new ttsetcompat() function for proper working
old v7 ioctls with locking bits.
This commit is contained in:
parent
0a247e7d30
commit
2178b9bb49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7759
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user