[Bug libc/10339] Terminal interface: non-standard baudrates are not handled properly on Linux-systems

hpa at zytor dot com sourceware-bugzilla@sourceware.org
Mon Oct 8 06:31:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=10339

--- Comment #14 from hpa at zytor dot com <hpa at zytor dot com> ---
OK, another problem:

Neither mips nor sparc defined the c_[io]speed in the *user space* struct
termios.  MIPS has a fair number of unused bytes in c_cc, so my current
thinking is to drop NCCS to 24 on MIPS (the kernel uses 23) and add those
fields.

However, SPARC seems to have followed the SunOS definition and not only does
not have these fields, but NCCS == 17; in other words the glibc structure
exactly matches the legacy SPARC structure.  I don't see a way around that
other than replacing struct termios on SPARC, and versioning the interfaces.

Thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list