diff options
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index e014e31..f311f76 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2440,5 +2440,34 @@ nottystop(tp, rw) struct tty *tp; int rw; { + return; } + +int +ttyread(dev, uio, flag) + dev_t dev; + struct uio *uio; + int flag; +{ + struct tty *tp; + + tp = dev->si_tty; + if (tp == NULL) + return (ENODEV); + return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); +} + +int +ttywrite(dev, uio, flag) + dev_t dev; + struct uio *uio; + int flag; +{ + struct tty *tp; + + tp = dev->si_tty; + if (tp == NULL) + return (ENODEV); + return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); +} |