serious termios flaw?

Till Straumann strauman at
Sun Jun 25 01:47:16 UTC 2006

I found that termios (and, BTW: ppp_tty) call
the low-level driver's 'write' routine, possibly supplying
more than one character and without checking
the return code of 'write'.

Most UART drivers OTOH (I checked i386, ppc, uC5282[coldfire]),
silently discard anything after the first char in the buffer.
This is not reflected in the return code.

IMO, the low-level drivers should return the # of chars
actually written and the upper layers should check for and
handle this case.

Am I missing something?


More information about the users mailing list