network/uinet/sys/kern/kern_cons.c
/*
 * Disable console redirection to a tty.
 */
Disable console redirection to a tty.
Disable console redirection to a tty .
void
constty_clear(void)
{
	int c;
	constty = NULL;
	if (consbuf == NULL)
		return;
	callout_stop(&conscallout);
	while ((c = msgbuf_getchar(&consmsgbuf)) != -1)
		cnputc(c);
	free(consbuf, M_TTYCONS);
	consbuf = NULL;
}
void constty_clear ( void ) { int c ; constty = NULL ; if ( consbuf == NULL ) return ; callout_stop ( & conscallout ) ; while ( ( c = msgbuf_getchar ( & consmsgbuf ) ) != -1 ) cnputc ( c ) ; free ( consbuf , M_TTYCONS ) ; consbuf = NULL ; }
Disable console redirection to a tty.
Disable console redirection to a tty .