mesh_driver/lunix-attach.c
static int tty_close(void)
{
	/*
	 * Set the old discipline and restore the
	 * previous line mode.
	 */
	(void) tty_set_ldisc(ldisc_before);
	(void) tty_restore();
	(void) tty_lock(NULL, 0);

	return 0;
}
/* Close down a terminal line. */
Close down a terminal line.
Close down a terminal line .
static int tty_close(void)
{
	(void) tty_set_ldisc(ldisc_before);
	(void) tty_restore();
	(void) tty_lock(NULL, 0);
	return 0;
}
static int tty_close ( void ) { ( void ) tty_set_ldisc ( ldisc_before ) ; ( void ) tty_restore ( ) ; ( void ) tty_lock ( NULL , 0 ) ; return 0 ; }
Close down a terminal line.
Close down a terminal line .
/*
	 * Set the old discipline and restore the
	 * previous line mode.
	 */