ioctl takes a proc *
This commit is contained in:
parent
74f86f13df
commit
59afe6ad54
@ -42,7 +42,7 @@
|
||||
* @(#)cons.c 8.1 (Berkeley) 7/19/93
|
||||
*
|
||||
* from: Header: cons.c,v 1.12 93/07/20 00:49:45 torek Exp
|
||||
* $Id: cons.c,v 1.5 1993/11/10 15:06:41 deraadt Exp $
|
||||
* $Id: cons.c,v 1.6 1994/02/14 09:37:11 deraadt Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -242,9 +242,9 @@ cnioctl(dev, cmd, data, flag, p)
|
||||
return (0);
|
||||
}
|
||||
tp = &cons;
|
||||
if ((error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag)) >= 0)
|
||||
if ((error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, p)) >= 0)
|
||||
return (error);
|
||||
if ((error = ttioctl(tp, cmd, data, flag)) >= 0)
|
||||
if ((error = ttioctl(tp, cmd, data, flag, p)) >= 0)
|
||||
return (error);
|
||||
return (ENOTTY);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
* @(#)zs.c 8.1 (Berkeley) 7/19/93
|
||||
*
|
||||
* from: Header: zs.c,v 1.30 93/07/19 23:44:42 torek Exp
|
||||
* $Id: zs.c,v 1.3 1993/10/13 02:36:44 deraadt Exp $
|
||||
* $Id: zs.c,v 1.4 1994/02/14 09:37:13 deraadt Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -959,10 +959,10 @@ zsioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
|
||||
register struct tty *tp = zi->zi_cs[unit & 1].cs_ttyp;
|
||||
register int error;
|
||||
|
||||
error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag);
|
||||
error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, p);
|
||||
if (error >= 0)
|
||||
return (error);
|
||||
error = ttioctl(tp, cmd, data, flag);
|
||||
error = ttioctl(tp, cmd, data, flag, p);
|
||||
if (error >= 0)
|
||||
return (error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user