NAME | SYNOPSIS | FEATURES | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | EXAMPLES | ATTRIBUTES | SEE ALSO
#include <unistd.h>long fpathconf(int fd, int name);
MSDOSFS, NFS_CLIENT, UFS
fpathconf() 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.
fpathconf() takes the parameters described in the list below:
An open file descriptor.
A system variable to be queried.
A file or directory name. Symbolic constants for each name value are found in the include file <unistd.h>.
name may be one of:
Returns 1 if appropriate privileges are required for the chown system call, otherwise returns 0.
The maximum file link count.
The maximum number of bytes in a terminal canonical input line.
The maximum number of bytes for which space is available in a terminal input queue.
The maximum number of bytes in a file name.
Returns 1 if file names longer than KERN_NAME_MAX are truncated.
The maximum number of bytes in a pathname.
The maximum number of bytes written automatically to a pipe.
The terminal character disabling value.
fpathconf() returns the following values:
The call was not successful and errno was set appropriately, or the variable is associated with functionality that does not have a limit in the system and errno was not modified.
The current variable value.
If any of the following conditions occur, the fpathconf() function returns -1 and set errno to one of the following error conditions.
The value of the name argument is invalid.
The implementation does not support an association of the variable name with the associated file.
fpathconf() will fail if:
fd is not a valid open file descriptor.
An I/O error occurred while reading from or writing to the file system.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|---|---|
| Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | EXAMPLES | ATTRIBUTES | SEE ALSO