![]() |
![]() |
![]() |
Support pathconf() requests
#include <sys/iofunc.h> int iofunc_pathconf( resmgr_context_t *ctp, io_pathconf_t *msg, iofunc_ocb_t *ocb, iofunc_attr_t *attr );
libc
The function iofunc_pathconf() does what's needed to support pathconf() with the mount and attr passed to it. Other fsys pathconf() requests need to be handled by the caller.
If you write your own pathconf callout for your resource manager, use the following macro to pass the requested value back to the caller:
_IO_SET_PATHCONF_VALUE( resmgr_context_t *ctp, int value )
EOK, or _RESMGR_DEFAULT if the function didn't handle the pathconf() request.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofunc_pathconf_default(), pathconf()
![]() |
![]() |
![]() |