title: uart buffer is not read
body: <p>I am trying to read binary data from a serial device in c on linux.
  The problem is, that sometimes there are chars in the driver's internal buffer, but polling (with select(2)) returns saying the device is not ready to be read.</p>
  
  <p>I have read and re-read the man of termios and all the related man and searched over the internet. I believe I set all the flags correctly (namely VTIME, VMIN) and unset ICANON.
  I tried using the function "tcmakeraw", as well, but it didn't solve the problem.</p>
  
  <p>Do you guys have any ideas about what should I do?</p>
  
  <p>Kind regards &amp; Thanks in advance
  Yannay</p>