[Previous] [Contents] [Next]

iofunc_openfd_default()

Default handler for _IO_OPENFD messages

Synopsis:

#include <sys/iofunc.h>

int iofunc_openfd_default( resmgr_context_t *ctp,
                           io_openfd_t *msg,
                           iofunc_ocb_t *ocb );

Library:

libc

Description:

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

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

Returns:

EOK
Success.
EACCES
You don't have permission to open the file.
EBUSY
The file has shared locks that are in use.
EINVAL
The message type is invalid.

Classification:

QNX 6

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

See also:

iofunc_chown_default(), iofunc_openfd(), iofunc_sync_default()


[Previous] [Contents] [Next]