[Previous] [Contents] [Next]

iofunc_pathconf_default()

Default handler for _IO_PATHCONF messages

Synopsis:

#include <sys/iofunc.h>

int iofunc_pathconf_default( resmgr_context_t *ctp,
                             io_pathconf_t *msg,
                             iofunc_ocb_t *ocb );

Library:

libc

Description:

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

The iofunc_pathconf_default() function returns information about the resource, as per the POSIX specifications for pathconf().

Returns:

EOK
Successful completion.
EINVAL
The pathconf parameter being ascertained wasn't one of _PC_CHOWN_RESTRICTED, _PC_NO_TRUNC, or _PC_SYNC_IO.

Classification:

QNX 6

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

See also:

iofunc_chmod_default(), iofunc_chown_default(), iofunc_close_dup_default(), iofunc_close_ocb_default(), iofunc_devctl_default(), iofunc_lock_default(), iofunc_lseek_default(), iofunc_mmap_default(), iofunc_open_default(), iofunc_stat_default(), iofunc_time_update(), iofunc_unblock_default(), iofunc_utime_default(), resmgr_attach()


[Previous] [Contents] [Next]