Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to use O_NONBLOCK in QNX?: (2 Items)
   
How to use O_NONBLOCK in QNX?  
Need to block the file to open till something is written to that file? Suggest something with code or options as soon.
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