diff options
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 31a06733b0fa..14ef309576b5 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_pty.c 8.2 (Berkeley) 9/23/93 - * $Id: tty_pty.c,v 1.5 1994/10/02 17:35:30 phk Exp $ + * $Id: tty_pty.c,v 1.6 1994/10/29 23:59:48 ache Exp $ */ /* @@ -552,6 +552,26 @@ block: goto again; } +struct tty * +ptydevtotty(dev) + dev_t dev; +{ + if (minor(dev) >= npty) + return (NULL); + + return &pt_tty[minor(dev)]; +} + +int +ptsselect(dev, rw, p) + dev_t dev; + int rw; + struct proc * p; +{ + return ttyselect(ptydevtotty(dev), rw, p); +} + + /*ARGSUSED*/ int ptyioctl(dev, cmd, data, flag, p) |