From af6c1b27acf52a85311802ba8068cc74d9a327ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 14 Dec 1998 21:48:11 +0000 Subject: [PATCH] Update. 1998-12-08 H.J. Lu * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Don't clear the IBAUD0 bit in c_iflag. * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear the the IBAUD0 bit in c_iflag. --- ChangeLog | 8 ++++++++ sysdeps/unix/sysv/linux/speed.c | 1 - sysdeps/unix/sysv/linux/tcsetattr.c | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c954b72..0ccb10a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1998-12-08 H.J. Lu + + * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Don't clear + the IBAUD0 bit in c_iflag. + + * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear the + the IBAUD0 bit in c_iflag. + 1998-12-14 Ulrich Drepper * time/Makefile (tests): Add tst-strptime. diff --git a/sysdeps/unix/sysv/linux/speed.c b/sysdeps/unix/sysv/linux/speed.c index 5a23e53..1244eb4 100644 --- a/sysdeps/unix/sysv/linux/speed.c +++ b/sysdeps/unix/sysv/linux/speed.c @@ -66,7 +66,6 @@ cfsetospeed (termios_p, speed) return -1; } - termios_p->c_iflag &= ~IBAUD0; termios_p->c_cflag &= ~(CBAUD | CBAUDEX); termios_p->c_cflag |= speed; diff --git a/sysdeps/unix/sysv/linux/tcsetattr.c b/sysdeps/unix/sysv/linux/tcsetattr.c index 4a35237..b919dbe 100644 --- a/sysdeps/unix/sysv/linux/tcsetattr.c +++ b/sysdeps/unix/sysv/linux/tcsetattr.c @@ -73,7 +73,9 @@ tcsetattr (fd, optional_actions, termios_p) return -1; } - k_termios.c_iflag = termios_p->c_iflag & ~IBAUD0; + termios_p->c_iflag &= ~IBAUD0; + + k_termios.c_iflag = termios_p->c_iflag; k_termios.c_oflag = termios_p->c_oflag; k_termios.c_cflag = termios_p->c_cflag; k_termios.c_lflag = termios_p->c_lflag; -- 2.7.4