patch-2.0.1 linux/drivers/char/pty.c
Next file: linux/drivers/char/random.c
Previous file: linux/drivers/char/n_tty.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jul 2 19:08:42 1996
- Orig file:
v2.0.0/linux/drivers/char/pty.c
- Orig date:
Thu Jun 6 22:35:44 1996
diff -u --recursive --new-file v2.0.0/linux/drivers/char/pty.c linux/drivers/char/pty.c
@@ -244,6 +244,12 @@
return retval;
}
+static void pty_set_termios(struct tty_struct *tty, struct termios *old_termios)
+{
+ tty->termios->c_cflag &= ~(CSIZE | PARENB);
+ tty->termios->c_cflag |= (CS8 | CREAD);
+}
+
int pty_init(void)
{
memset(&pty_state, 0, sizeof(pty_state));
@@ -274,6 +280,7 @@
pty_driver.flush_buffer = pty_flush_buffer;
pty_driver.chars_in_buffer = pty_chars_in_buffer;
pty_driver.unthrottle = pty_unthrottle;
+ pty_driver.set_termios = pty_set_termios;
pty_slave_driver = pty_driver;
pty_slave_driver.name = "ttyp";
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov