This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: last changes and problems
- To: drepper@cygnus.com
- Subject: Re: last changes and problems
- From: hjl@lucon.org (H.J. Lu)
- Date: Sun, 13 Dec 1998 09:15:58 -0800 (PST)
- Cc: libc-hacker@cygnus.com
>
> Hi,
>
> I think I've checked in all the changes I got. If you find something
> missing please resubmit the patch.
>
What happened to this? As I said, Setting the input baud rate to the
output baud rate by the 0 input baud rate only happens when the call
to tcsetattr is made. My patch fixes it.
Thanks.
H.J.
---
Tue Dec 8 07:47:03 1998 H.J. Lu <hjl@gnu.org>
* 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.
Index: sysdeps/unix/sysv/linux/speed.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/sysdeps/unix/sysv/linux/speed.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 speed.c
--- speed.c 1998/12/08 15:32:22 1.1.1.3
+++ speed.c 1998/12/08 15:50:39
@@ -66,7 +66,6 @@
return -1;
}
- termios_p->c_iflag &= ~IBAUD0;
termios_p->c_cflag &= ~(CBAUD | CBAUDEX);
termios_p->c_cflag |= speed;
Index: sysdeps/unix/sysv/linux/tcsetattr.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/sysdeps/unix/sysv/linux/tcsetattr.c,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 tcsetattr.c
--- tcsetattr.c 1998/12/08 15:32:23 1.1.1.4
+++ tcsetattr.c 1998/12/08 15:50:39
@@ -73,7 +73,9 @@
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;