[RFC] termios: non-standard baudrates are not handled properly on Linux-systems (BZ#10339)
Paul Eggert
eggert@cs.ucla.edu
Wed Oct 3 22:13:00 GMT 2018
On 10/3/18 12:47 PM, Adhemerval Zanella wrote:
> Hans Peter Anvin is advocating for second options [2], with the new API as:
>
> -- Function: speed_t cfgetispeedbps (struct termios *TERMIOS-P)
> This function returns the input line speed stored in the
> structure `*TERMIOS-P' as a number of bits per second.
speed_t is unsigned int. Is that enough for all devices likely in the
reasonably-near future? I see stories about Arduino serial ports running
at multiple Mb/s, and although that fits it's getting uncomfortably
close to UINT_MAX. USB 3.0 can in theory do 5 Gb/s, which would exceed
'unsigned int' range, and USB 3.1 and 3.2 are even faster.
More information about the Libc-alpha
mailing list