[Bug libc/10339] Terminal interface: non-standard baudrates are not handled properly on Linux-systems
hpa at zytor dot com
sourceware-bugzilla@sourceware.org
Thu Apr 10 02:38:49 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=10339
--- Comment #31 from H. Peter Anvin <hpa at zytor dot com> ---
This is the POSIX resolution:
On page 444 line 15426 section <termios.h>, change FUTURE DIRECTIONS from:
None.
to:
A future version of this standard is expected to add at least the following
symbolic constants for use as values of objects of type speed_t: B57600,
B115200, B230400, B460800, and B921600.
Implementations are encouraged to propose additional interfaces which will
make it possible to set and query a wider range of speeds than just those
enumerated by the constants beginning with B. If a set of common interfaces
emerges between several implementations, a future version of this standard will
likely add those interfaces.
This seems to imply that they think that a new interface is better than
redefine the current one. My proposal for that is, and remains,
cf[gs]et[io]baud() and baud_t, defined to be a numeric type; unlike changing
the core of termios that is something that can be done as an infill on existing
implementations, as well.
This is not, however, mutually exclusive with revising the termios interface.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list