1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Add ttyalloc() which in due time will be the successor to ttymalloc(),

but without the "struct tty *" argument.
This commit is contained in:
Poul-Henning Kamp 2004-09-17 06:13:47 +00:00
parent d622ef6993
commit 3e6bf9fb86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135363
2 changed files with 8 additions and 0 deletions

View File

@ -2798,6 +2798,13 @@ ttymalloc(struct tty *tp)
return (tp);
}
struct tty *
ttyalloc()
{
return (ttymalloc(NULL));
}
static int
sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
{

View File

@ -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);