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

	if (ioctl(tty_fd, TIOCGETD, disc) < 0) {
		saved_errno = errno;
		perror("get ldisc: failed to get line discipline");
		fprintf(stderr, "Is the Lunix:TNG discipline actually loaded?!\n");
		return -saved_errno;
	}
	
	return 0;
}
/* Get the TTY line discipline. */
Get the TTY line discipline.
Get the TTY line discipline .
static int tty_get_ldisc(int *disc)
{
	int saved_errno;
	if (ioctl(tty_fd, TIOCGETD, disc) < 0) {
		saved_errno = errno;
		perror("get ldisc: failed to get line discipline");
		fprintf(stderr, "Is the Lunix:TNG discipline actually loaded?!\n");
		return -saved_errno;
	}
	return 0;
}
static int tty_get_ldisc ( int * disc ) { int saved_errno ; if ( ioctl ( tty_fd , TIOCGETD , disc ) < 0 ) { saved_errno = errno ; perror ( " " ) ; fprintf ( stderr , " \n " ) ; return - saved_errno ; } return 0 ; }
Get the TTY line discipline.
Get the TTY line discipline .