Thomas Fletcher
|
Re: How to use O_NONBLOCK in QNX?
|
Thomas Fletcher
10/17/2008 8:12 PM
post15185
|
Re: How to use O_NONBLOCK in QNX?
Venugopal CK wrote:
> Need to block the file to open till something is written to that
> file? Suggest something with code or options as soon.
... as soon as possible?
For a standard Unix style approach, read up on select(). For
a Neutrino specific solution you could look into io_notify (which
is what select uses under the covers).
For most standard files, you wouldn't block the open, but block
the read. The only exception here might be tty/pty's which have
open blocking behaviour on some unixes if the master/slave isn't
yet present.
Thomas
|
|
|