devel  

xf86open flags

jkjellman
Mon, 10 Mar 2003 15:28:54 -0800

I have been working an input routine that requires a pipe for interactive calibration.  I need to open the pipe with O_NONBLOCK so as not to halt if a user process does not have the pipe open.
 
In doing this I have found that the xf86open does not support O_NONBLOCK, just O_RDONLY, O_WRONLY and O_CREAT.  Is there a problem with adding support for O_NONBLOCK?  I can see where it needs to be added in a couple of places to create the XF86_O_NONBLOCK define and have it be used.  I just do not want to create a mutant variation of the server that cannot be added to the cvs tree.
 
If O_NONBLOCK cannot be supported (e.g. not available in all OSes, etc.), then does anyone know how I can access a pipe (or some other non-child/parent IPC mechanism) to allow my communication?
 
Take care,
KJohn