| Updated: October 28, 2024 |
Default handler for _IO_CONNECT messages
#include <sys/iofunc.h>
int iofunc_open_default( resmgr_context_t *ctp,
io_open_t *msg,
iofunc_attr_t *attr,
void *extra );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iofunc_open_default() function implements the default actions for the _IO_CONNECT message in a resource manager. This function calls:
You can place this function directly into the connect_funcs table passed to resmgr_attach(), at the open position, or you can call iofunc_func_init() to initialize all of the functions to their default values.
For an outline of what this function does, see Writing the entire function yourself in the Fleshing Out the Skeleton chapter of Writing a Resource Manager.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |