int io_openfd (resmgr_context_t *ctp, io_openfd_t *msg, RESMGR_OCB_T *ocb )
Classification: I/O
Default handler: iofunc_openfd_default()
Helper functions: iofunc_ability_check(), iofunc_openfd()
Client function: openfd()
Messages: _IO_OPENFD
Data structure:
struct _io_openfd { uint16_t type; uint16_t combine_len; uint32_t ioflag; uint16_t sflag; uint16_t reserved1; struct _msg_info info; uint32_t reserved2; uint32_t key; }; typedef union { struct _io_openfd i; } io_openfd_t;
Description: This function is similar to the handler provided for io_open(), except that instead of a pathname, an already-open file descriptor is passed (by virtue of passing you the ocb in the function call).
Returns: The status via the helper macro _RESMGR_STATUS().