Re: Blocking read() from a USB->Serial adapter.



On 2006-11-25, Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:
Grant Edwards <grante@xxxxxxxx> wrote:
On 2006-11-25, Charles Sullivan <cwsulliv@xxxxxxxxxxxx> wrote:

If that's the case, then that answers my questions. I thought
blocking meant blocking until the specified number of
characters is read, or until the read is interrupted.

Or until the driver decides to return for whatever reason it
chooses. On success, you're guaranteed a minimum of one byte.

Maybe. (Maybe not too!)

There's the case where the file is at EOF. Is there another
case where read() will return success with 0 bytes?

--
Grant Edwards
grante@xxxxxxxx

.



Relevant Pages

  • Re: Blocking read() from a USB->Serial adapter.
    ... blocking meant blocking until the specified number of ... Or until the driver decides to return for whatever reason it ... On success, you're guaranteed a minimum of one byte. ... AIUI EOF is not success. ...
    (comp.os.linux.development.apps)
  • Re: Blocking read() from a USB->Serial adapter.
    ... blocking meant blocking until the specified number of ... Or until the driver decides to return for whatever reason it ... On success, you're guaranteed a minimum of one byte. ... indeed set the EOF flag, but with a serial port (or a pipe, or a ...
    (comp.os.linux.development.apps)
  • Re: Blocking read() from a USB->Serial adapter.
    ... blocking meant blocking until the specified number of ... characters is read, or until the read is interrupted. ... Or until the driver decides to return for whatever reason it ... On success, you're guaranteed a minimum of one byte. ...
    (comp.os.linux.development.apps)
  • Re: Blocking read() from a USB->Serial adapter.
    ... blocking meant blocking until the specified number of ... characters is read, or until the read is interrupted. ... Or until the driver decides to return for whatever reason it ...
    (comp.os.linux.development.apps)
  • Blocking crossposts
    ... Is there a way of blocking from view cross-posts on a ... success. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)