How do I get the oflag passed by the open() statement

I’ve written a resource manager and I set the pointer to the open function
to be my own fuction instead of the default.
Now I need to know if I have been opened for read/write or read&write. What
structure contains this info. The arguments into my io_open function are:
io_open (resmgr_context_t *ctp, io_open_t *msg, RESMGR_HANDLE_T *handle,
void *extra)

Thanks,

Chris Rose <chris.rose@viasat.com> wrote:

I’ve written a resource manager and I set the pointer to the open function
to be my own fuction instead of the default.
Now I need to know if I have been opened for read/write or read&write. What
structure contains this info. The arguments into my io_open function are:
io_open (resmgr_context_t *ctp, io_open_t *msg, RESMGR_HANDLE_T *handle,
void *extra)

I think msg->connect.ioflag should contain this.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.