33c33
< __FBSDID("$FreeBSD: head/sys/kern/tty_pty.c 129939 2004-06-01 11:57:15Z phk $");
---
> __FBSDID("$FreeBSD: head/sys/kern/tty_pty.c 130054 2004-06-04 06:50:35Z phk $");
111c111
< struct tty pt_tty;
---
> struct tty *pt_tty;
150a151
> pt->pt_tty = ttymalloc(pt->pt_tty);
152,154c153,154
< devs->si_tty = devc->si_tty = &pt->pt_tty;
< pt->pt_tty.t_dev = devs;
< ttyregister(&pt->pt_tty);
---
> devs->si_tty = devc->si_tty = pt->pt_tty;
> pt->pt_tty->t_dev = devs;
751,754c751,752
< error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td);
< if (error == ENOIOCTL)
< error = ttioctl(tp, cmd, data, flag);
< if (error == ENOIOCTL) {
---
> error = ttyioctl(dev, cmd, data, flag, td);
> if (error == ENOTTY) {
< __FBSDID("$FreeBSD: head/sys/kern/tty_pty.c 129939 2004-06-01 11:57:15Z phk $");
---
> __FBSDID("$FreeBSD: head/sys/kern/tty_pty.c 130054 2004-06-04 06:50:35Z phk $");
111c111
< struct tty pt_tty;
---
> struct tty *pt_tty;
150a151
> pt->pt_tty = ttymalloc(pt->pt_tty);
152,154c153,154
< devs->si_tty = devc->si_tty = &pt->pt_tty;
< pt->pt_tty.t_dev = devs;
< ttyregister(&pt->pt_tty);
---
> devs->si_tty = devc->si_tty = pt->pt_tty;
> pt->pt_tty->t_dev = devs;
751,754c751,752
< error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td);
< if (error == ENOIOCTL)
< error = ttioctl(tp, cmd, data, flag);
< if (error == ENOIOCTL) {
---
> error = ttyioctl(dev, cmd, data, flag, td);
> if (error == ENOTTY) {