|PATHCONF(2)||System Calls Manual||PATHCONF(2)|
pathconf — get configurable
pathconf(const char *path,
functions provides a method for applications to determine the current value
of a configurable system limit or option variable associated with a pathname
or file descriptor.
path argument is the name of a file or directory. For
fpathconf, the fildes argument
is an open file descriptor. The name argument
specifies the system variable to be queried. Symbolic constants for each
name value are found in the include file
The available values are as follows:
fpathconf() return a positive number that represents the minimum hole size returned in bytes. The offsets of holes returned will be aligned to this same value. A special value of 1 is returned if the file system does not specify the minimum hole size but still reports holes.
If the call to
fpathconf is not successful, -1 is returned and
errno is set appropriately. Otherwise, if the variable
is associated with functionality that does not have a limit in the system,
-1 is returned and errno is not modified. Otherwise,
the current variable value is returned.
If any of the following conditions occur, the
functions shall return -1 and set errno to the
pathconf() will fail if:
fpathconf() will fail if:
fpathconf functions first appeared in 4.4BSD.
|June 4, 1993||BSD 4|