[PATCH 1/1] linux/termios: clear c_cflag & CIBAUD for non-split speed
H. Peter Anvin
hpa@zytor.com
Mon Sep 8 18:26:58 GMT 2025
On 2025-09-08 08:43, Florian Weimer wrote:
>
> The glibc comment style doesn't use leading *, and the comment text
> starts on the first line of the comment.
>
> Does it fix bug 33340?
>
I should say "fixes conditionally". NONE of these programs are going to
work correctly if the serial port is already set to split speed without
also clearing CIBAUD, but there is literally nothing we can do about
that; except perhaps *always* setting CIBAUD to BOTHER (except on Alpha)
and set c_ispeed to 0 on the termios2 kernel interface side instead of
equal to c_ospeed.
Let me ponder that option for a little bit (it just struck me right now;
I had not considered it before), and look to see that the kernel
actually will DTRT in that case.
-hpa
More information about the Libc-alpha
mailing list