26.02.2014 Views

Getting Started with QNX Neutrino - QNX Software Systems

Getting Started with QNX Neutrino - QNX Software Systems

Getting Started with QNX Neutrino - QNX Software Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

© 2009, <strong>QNX</strong> <strong>Software</strong> <strong>Systems</strong> GmbH & Co. KG. Alphabetical listing of connect and I/O functions<br />

returns an errno. Note that not all input and output structure members are relevant for<br />

this function.<br />

Returns: The status via the helper macro _IO_SET_CONNECT_RET.<br />

io_openfd()<br />

int io_openfd (resmgr_context_t *ctp, io_openfd_t *msg,<br />

RESMGR_OCB_T *ocb)<br />

Classification: I/O<br />

Default handler: iofunc_openfd_default()<br />

Helper functions: iofunc_openfd()<br />

Client function: openfd()<br />

Messages: _IO_OPENFD<br />

Data structure:<br />

struct _io_openfd {<br />

uint16_t<br />

uint16_t<br />

uint32_t<br />

uint16_t<br />

uint16_t<br />

struct _msg_info<br />

uint32_t<br />

uint32_t<br />

};<br />

type;<br />

combine_len;<br />

ioflag;<br />

sflag;<br />

reserved1;<br />

info;<br />

reserved2;<br />

key;<br />

typedef union {<br />

struct _io_openfd i;<br />

} io_openfd_t;<br />

Description: This function is similar to the handler provided for io_open(), except that<br />

instead of a pathname, an already-open file descriptor is passed (by virtue of passing<br />

you the ocb in the function call).<br />

Returns: The status via the helper macro _RESMGR_STATUS.<br />

io_pathconf()<br />

int io_pathconf (resmgr_context_t *ctp, io_pathconf_t *msg,<br />

RESMGR_OCB_T *ocb)<br />

Classification: I/O<br />

Default handler: iofunc_pathconf_default()<br />

Helper functions: iofunc_pathconf()<br />

Client functions: fpathconf(), pathconf()<br />

Messages: _IO_PATHCONF<br />

Data structure:<br />

April 30, 2009 Chapter 5 • Resource Managers 243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!