summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/tty.c7
-rw-r--r--sys/sys/tty.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index fa3fe3f..f95b9ff 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2798,6 +2798,13 @@ ttymalloc(struct tty *tp)
return (tp);
}
+struct tty *
+ttyalloc()
+{
+
+ return (ttymalloc(NULL));
+}
+
static int
sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
{
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index d196c6a..570b403 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -312,6 +312,7 @@ int ttstart(struct tty *tp);
void ttwakeup(struct tty *tp);
int ttwrite(struct tty *tp, struct uio *uio, int flag);
void ttwwakeup(struct tty *tp);
+struct tty *ttyalloc(void);
void ttyblock(struct tty *tp);
void ttychars(struct tty *tp);
int ttycheckoutq(struct tty *tp, int wait);
OpenPOWER on IntegriCloud