From 3e6bf9fb86ed557dbf34a05a65b919d0b55d6fbc Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 17 Sep 2004 06:13:47 +0000 Subject: [PATCH] Add ttyalloc() which in due time will be the successor to ttymalloc(), but without the "struct tty *" argument. --- sys/kern/tty.c | 7 +++++++ sys/sys/tty.h | 1 + 2 files changed, 8 insertions(+) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index fa3fe3f9fbfa..f95b9ffd3272 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 d196c6a2cf4e..570b403c0559 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);