#include <oskit/io/posixio.h>OSKIT_COMDECL oskit_posixio_pathconf(oskit_posixio_t *f, oskit_s32_t option, [out] oskit_s32_t *out_val);
This method returns the value of the specified configuration option variable for this object. The value of option may be one of the following:
- OSKIT_PC_LINK_MAX
- Get the maximum file link count.
- OSKIT_PC_MAX_CANON
- Get the maximum size of the terminal input line.
- OSKIT_PC_MAX_INPUT
- Get the maximum input queue size.
- OSKIT_PC_NAME_MAX
- Get the maximum number of bytes in a filename.
- OSKIT_PC_PATH_MAX
- Get the maximum number of bytes in a pathname.
- OSKIT_PC_PIPE_BUF
- Get the maximum atomic write size to a pipe.
- OSKIT_PC_CHOWN_RESTRICTED
- Determine whether use of chown is restricted.
- OSKIT_PC_NO_TRUNC
- Determine whether too-long pathnames produce errors.
- OSKIT_PC_VDISABLE
- Get value to disable special terminal characters.
- OSKIT_PC_ASYNC_IO
- Determine whether asynchronous IO is supported.
- OSKIT_PC_PRIO_IO
- Determine whether prioritized IO is supported.
- OSKIT_PC_SYNC_IO
- Determine whether synchronized IO is supported.
- f
- The object from which to obtain a configuration option value
- option
- The configuration option variable
- out_val
- The value of the configuration option value.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.