Node:Pathconf, Next:Utility Limits, Previous:File Minimums, Up:System Configuration
pathconf
When your machine allows different files to have different values for a file system parameter, you can use the functions in this section to find out the value that applies to any particular file.
These functions and the associated constants for the parameter
argument are declared in the header file unistd.h
.
long int pathconf (const char *filename, int parameter) | Function |
This function is used to inquire about the limits that apply to
the file named filename.
The parameter argument should be one of the The normal return value from Besides the usual file name errors (see File Name Errors), the following error condition is defined for this function:
|
long int fpathconf (int filedes, int parameter) | Function |
This is just like pathconf except that an open file descriptor
is used to specify the file for which information is requested, instead
of a file name.
The following
|
Here are the symbolic constants that you can use as the parameter
argument to pathconf
and fpathconf
. The values are all
integer constants.
_PC_LINK_MAX
LINK_MAX
.
_PC_MAX_CANON
MAX_CANON
.
_PC_MAX_INPUT
MAX_INPUT
.
_PC_NAME_MAX
NAME_MAX
.
_PC_PATH_MAX
PATH_MAX
.
_PC_PIPE_BUF
PIPE_BUF
.
_PC_CHOWN_RESTRICTED
_POSIX_CHOWN_RESTRICTED
.
_PC_NO_TRUNC
_POSIX_NO_TRUNC
.
_PC_VDISABLE
_POSIX_VDISABLE
.
_PC_SYNC_IO
_POSIX_SYNC_IO
.
_PC_ASYNC_IO
_POSIX_ASYNC_IO
.
_PC_PRIO_IO
_POSIX_PRIO_IO
.
_PC_SOCK_MAXBUF
_POSIX_PIPE_BUF
.
_PC_FILESIZEBITS
_PC_REC_INCR_XFER_SIZE
POSIX_REC_INCR_XFER_SIZE
.
_PC_REC_MAX_XFER_SIZE
POSIX_REC_MAX_XFER_SIZE
.
_PC_REC_MIN_XFER_SIZE
POSIX_REC_MIN_XFER_SIZE
.
_PC_REC_XFER_ALIGN
POSIX_REC_XFER_ALIGN
.