mesh_driver/lunix-attach.c
static int tty_get_state(struct termios *tty)
{
	int saved_errno;

	if (ioctl(tty_fd, TCGETS, tty) < 0) {
		saved_errno = errno;
		perror("Get TTY State:");
		return -saved_errno;
	}
	
	return 0;
}
/* Fetch the state of a terminal. */
Fetch the state of a terminal.
Fetch the state of a terminal .
static int tty_get_state(struct termios *tty)
{
	int saved_errno;
	if (ioctl(tty_fd, TCGETS, tty) < 0) {
		saved_errno = errno;
		perror("Get TTY State:");
		return -saved_errno;
	}
	return 0;
}
static int tty_get_state ( struct termios * tty ) { int saved_errno ; if ( ioctl ( tty_fd , TCGETS , tty ) < 0 ) { saved_errno = errno ; perror ( " " ) ; return - saved_errno ; } return 0 ; }
Fetch the state of a terminal.
Fetch the state of a terminal .