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'.
The parameter argument should be one of the `_PC_' constants listed below.
The normal return value from
pathconf is the value you requested.
A value of
-1 is returned both if the implementation does not
impose a limit, and in case of an error. In the former case,
errno is not set, while in the latter case,
errno is set
to indicate the cause of the problem. So the only way to use this
function robustly is to store
errno just before
Besides the usual file name errors (see section File Name Errors), the following error condition is defined for this function:
pathconfexcept that an open file descriptor is used to specify the file for which information is requested, instead of a file name.
errno error conditions are defined for this function:
Here are the symbolic constants that you can use as the parameter
fpathconf. The values are all
Go to the first, previous, next, last section, table of contents.