|
|||||||
|
|
FPATHCONFSection: Linux Programmer's Manual (3)Updated: 1993-04-04 Index Return to Main Contents 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 ALSOgetconf(1), statfs(2), open(2), sysconf(3)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |