Default handler for _IO_READ messages
#include <sys/iofunc.h>
int iofunc_read_default( resmgr_context_t *ctp,
io_read_t *msg,
iofunc_ocb_t *ocb );
libc
The iofunc_read_default() function implements POSIX semantics for the client's read() call, which is received as an _IO_READ message by the resource manager. This function can be placed directly into the io_funcs table passed to resmgr_attach(), at the read position.
The iofunc_read_default() function calls iofunc_read_verify() to do the actual work, and (if installed in the io_funcs table) issues the reply back to the client.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
iofunc_open(), iofunc_write_default(), iofunc_write_verify()