summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-09-28 11:45:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-09-28 11:45:31 +0000
commit1ab305ef608dc3a8a8bc426b615e6b81bd7f5a05 (patch)
tree78e614a9d8df297bbfd1f6032918394d497d7e7e /sys/kern/tty.c
parent340b1ef5450ecb74273a36b438c177af7f1d40b0 (diff)
Notes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e014e31c1868..f311f762f373 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));
+}