[Previous] [Contents] [Next]

iofunc_write_default()

Default handler for _IO_WRITE messages

Synopsis:

#include <sys/iofunc.h>

int iofunc_write_default( resmgr_context_t* ctp,
                          io_write_t* msg,
                          iofunc_ocb_t* ocb );

Library:

libc

Description:

The iofunc_write_default() function implements POSIX semantics for the client's write() call, which is received as an _IO_WRITE message by the resource manager. This function can be placed directly into the io_funcs table passed to resmgr_attach(), at the write position.

The iofunc_write_default() function calls iofunc_write_verify() to do the actual work, and (if installed in the io_funcs table) issues the reply back to the client.

Returns:

EBADF
The client doesn't have read access to this resource.
EINVAL
An unknown xtype was given.
EOK
The client has read access to this resource.

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

iofunc_open(), iofunc_write_verify()


[Previous] [Contents] [Next]