mesh_driver/lunix-attach.c
static int tty_set_ldisc(int disc)
{
	int saved_errno;

	if (ioctl(tty_fd, TIOCSETD, &disc) < 0) {
		saved_errno = errno;
		perror("set ldisc: failed to set line discipline");
		return -saved_errno;
	}
	
	return 0;
}
/* Set the TTY line discipline. */
Set the TTY line discipline.
Set the TTY line discipline .
static int tty_set_ldisc(int disc)
{
	int saved_errno;
	if (ioctl(tty_fd, TIOCSETD, &disc) < 0) {
		saved_errno = errno;
		perror("set ldisc: failed to set line discipline");
		return -saved_errno;
	}
	return 0;
}
static int tty_set_ldisc ( int disc ) { int saved_errno ; if ( ioctl ( tty_fd , TIOCSETD , & disc ) < 0 ) { saved_errno = errno ; perror ( " " ) ; return - saved_errno ; } return 0 ; }
Set the TTY line discipline.
Set the TTY line discipline .