<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>I am using the
latest RTEMS snapshot with the i386/pc586 BSP.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>I have a simple
program that is just opening up a serial port and </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>writing out a
string. The application on the other end of the serial</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>port will write out
a block of information to the serial port when it</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>receives this
initial string.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>I have noticed that
the read() function call will only return one</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>character at a time
even though I know the termios buffer has</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>more information
than that. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>Basically, the
function fillBufferQueue() </SPAN></FONT><FONT face=Arial size=2><SPAN
class=530443420-13082001>in libc/termios.c returns </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>as soon as it has
copied VMIN characters. </SPAN></FONT><FONT face=Arial size=2><SPAN
class=530443420-13082001>Should it instead </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>copy all available
characters that will fit into </SPAN></FONT><FONT face=Arial size=2><SPAN
class=530443420-13082001>the given buffer? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>Is this a bug or is
termios behaving correctly?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>I have a simple
patch to allow it return more than VMIN characters</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>but I want to ensure
this is the correct behavior.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=530443420-13082001>Mike
Siers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=530443420-13082001></SPAN></FONT> </DIV></BODY></HTML>