| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
FPATHCONFSection: Linux Programmer's Manual (3)Updated: April 4, 2025 Index NAMEfpathconf, pathconf - get configuration values for filesSYNOPSIS#include <unistd.h> long fpathconf(int filedes, int name); long pathconf(char *path, int name); DESCRIPTIONfpathconf() gets a value for the configuration option name for the open file descriptor filedes.pathconf() gets a value for configuration option name for the file name path. The corresponding macros defined in <unistd.h> are minimum values; if an application wants to take advantage of values which may change, a call to fpathconf() or pathconf() can be made, which may yield more liberal results. Setting name equal to one of the following constants returns the following configuration options:
RETURN VALUEThe limit is returned, if one exists. If the system does not have a limit for the requested resource, -1 is returned, and errno is unchanged. If there is an error, -1 is returned, and errno is set to reflect the nature of the error.CONFORMING TOPOSIX.1NOTESFiles with name lengths longer than the value returned for name equal to _PC_NAME_MAX may exist in the given directory.Some returned values may be huge; they are not suitable for allocating memory. SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:03 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |