Restored unused function ttrstrt(). It would be used if the low level

drivers supported inter-character delays.
This commit is contained in:
Bruce Evans 1995-12-14 22:32:52 +00:00
parent d1022821ae
commit 947803d7d8
2 changed files with 29 additions and 2 deletions
sys
kern
sys

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
* $Id: tty.c,v 1.73 1995/12/13 15:13:11 julian Exp $
* $Id: tty.c,v 1.74 1995/12/14 08:31:56 phk Exp $
*/
/*-
@ -1251,6 +1251,32 @@ ttyunblock(tp)
ttstart(tp);
}
#ifdef notyet
/* Not used by any current (i386) drivers. */
/*
* Restart after an inter-char delay.
*/
void
ttrstrt(tp_arg)
void *tp_arg;
{
struct tty *tp;
int s;
#ifdef DIAGNOSTIC
if (tp_arg == NULL)
panic("ttrstrt");
#endif
tp = tp_arg;
s = spltty();
CLR(tp->t_state, TS_TIMEOUT);
ttstart(tp);
splx(s);
}
#endif
int
ttstart(tp)
struct tty *tp;

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.h 8.6 (Berkeley) 1/21/94
* $Id: tty.h,v 1.32 1995/12/08 11:19:32 julian Exp $
* $Id: tty.h,v 1.33 1995/12/14 08:32:37 phk Exp $
*/
#ifndef _SYS_TTY_H_
@ -235,6 +235,7 @@ void termioschars __P((struct termios *t));
int tputchar __P((int c, struct tty *tp));
int ttioctl __P((struct tty *tp, int com, void *data, int flag));
int ttread __P((struct tty *tp, struct uio *uio, int flag));
void ttrstrt __P((void *tp));
int ttyselect __P((struct tty *tp, int rw, struct proc *p));
int ttselect __P((dev_t dev, int rw, struct proc *p));
void ttsetwater __P((struct tty *tp));