Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fpathconf(2) [osf1 man page]

pathconf(2)							System Calls Manual						       pathconf(2)

NAME
pathconf, fpathconf - Retrieve file implementation characteristics SYNOPSIS
#include <unistd.h> long pathconf( const char *path, int name); long fpathconf( int filedes, int name); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: fpathconf(), pathconf(): POSIX.1, XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the pathname. If the final component of path is a symbolic link, it will be traversed and filename resolution will continue. Specifies an open file descriptor. Specifies the configuration attribute to be queried. DESCRIPTION
The fpathconf() and pathconf() functions provide a method for an application to determine the current value of a configurable limit or option (variable) that is associated with a file or directory. For pathconf(), the path parameter points to the pathname of a file or directory. Read, write, or execute permission of the named file is not required, but all directories in the path leading to the file must be searchable. The following is a list of the system variables whose values are returned by pathconf() and fpathconf() and the symbolic constants (shown in parentheses) that are the corresponding values used for the name parameter. The variables come from either the limits.h or unistd.h header file and the symbolic constants are defined in unistd.h. The minimum number of bits needed to represent as a signed integer value the maximum size of a regular file that is allowed in the speci- fied directory. The maximum number of links to the file. If path or filedes refers to a directory, the value returned applies to the directory itself. The maximum number of bytes in a canonical input line. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a terminal file. The minimum number of bytes for which space is available in an input queue; therefore, the maximum number of bytes a portable appli- cation may require to be typed as input before reading them. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a terminal file. The maximum number of bytes in a filename (not including a terminating null). If path or filedes refers to a directory, the value returned applies to filenames within the directory. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a directory. The maximum number of bytes in a pathname (including a terminating null). If path or filedes refers to a directory, the value returned is the maximum length of a relative pathname when the specified direc- tory is the working directory. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a directory. The maximum number of bytes guaranteed to be atomic when writing to a pipe. If path refers to a FIFO, or filedes refers to a pipe or FIFO, the value returned applies to the referenced object. If path or filedes refers to a directory, the value returned applies to any FIFO that exists or can be created within the directory. The association of this variable name with the specified file is not guaranteed if path or filedes refers to any other type of file. The Access Control List (ACL) processing status value for the file. The return indicates if an ACL can be set on the file and if ACL processing is enabled for the file. The return does not indicate if an ACL is set on the file. Returns 1 if ACLs are supported and enabled for the file. This indicates that ACLs can be set on the file and that ACL checking and ACL inheritance are enabled on the file. Returns 0 if ACLs are supported for the file, but are not enabled. This indicates that ACLs can be set on the file, but that ACL checking and ACL inheritance are not enabled on the file. Returns -1 with errno set to EINVAL if ACLs are not supported for the file. This indicates that the filesystem containing the file does not support ACLs. The use of chown() is restricted to a process with appropriate privileges, and to changing the group ID of a file only to the effective group ID of the process or to one of its supplementary group IDs. If the path or filedes parameter refers to a directory, the value returned applies to any files (other than directories) that exist or can be created within the directory. Returns 0 (zero) if supplying a component name longer than allowed by NAME_MAX will cause an error. Returns 1 if long component names are truncated. If path or filedes refers to a directory, the value returned applies to filenames within the directory. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a directory. A character value used to disable terminal special characters. The association of this variable name with the specified file is guaranteed only when path or filedes refers to a terminal file. RETURN VALUES
Upon successful completion, the pathconf() or fpathconf() function returns the specified parameter. If name is an invalid value, both pathconf() and fpathconf() return -1 and errno is set to indicate the error. If the variable corresponding to name has no limit for the path or file descriptor, both pathconf() and fpathconf() return -1 without changing errno. ERRORS
If the pathconf() function fails, errno may be set to the following value: Search permission is denied for a component of the path prefix. Too many symbolic links were encountered in translating a pathname. The name parameter is invalid. [Tru64 UNIX] The path argument is an invalid address. The length of the path string exceeds PATH_MAX or a pathname component is longer than NAME_MAX. Pathname resolution of a symbolic link produced an intermediate result whose length exceeds PATH_MAX. The named file does not exist or the path argument points to an empty string. A component of the path prefix is not a directory. If the fpathconf() function fails, errno may be set to the following value: The name parameter specifies an unknown or inapplicable charac- teristic. The filedes argument is not a valid file descriptor. [Tru64 UNIX] The named file has been revoked. RELATED INFORMATION
Standards: standards(5) delim off pathconf(2)
Man Page