|
|
#include <unistd.h>
long fpathconf(int fildes, int name);
long pathconf(const char *path, int name);
The values returned by pathconf() and fpathconf() depend on the type of file specified by path or fildes. The following table contains the symbolic constants supported by pathconf() and fpathconf() along with the POSIX defined return value. The return value is based on the type of file specified by path or fildes.
+---------------------+----------+
| Value of name | See Note |
+---------------------+----------+
+---------------------+----------+
|_PC_LINK_MAX | 1 |
+---------------------+----------+
|_PC_MAX_CANNON | 2 |
+---------------------+----------+
|_PC_MAX_INPUT | 2 |
+---------------------+----------+
|_PC_NAME_MAX | 3,4 |
+---------------------+----------+
|_PC_PATH_MAX | 4,5 |
+---------------------+----------+
|_PC_PIPE_BUF | 6 |
+---------------------+----------+
|_PC_CHOWN_RESTRICTED | 7 |
+---------------------+----------+
|_PC_NO_TRUNC | 3,4 |
+---------------------+----------+
|_PC_VDISABLE | 2 |
+---------------------+----------+
|_PC_ASYNC_IO | 2 |
+---------------------+----------+
|_PC_PRIO_IO | 2 |
+---------------------+----------+
|_PC_SYNC_IO | 1 |
+---------------------+----------+
Notes:
The value of the configurable system limit or option specified by name does not change during the lifetime of the calling process.
fpathconf() fails if the following is true:
pathconf() fails if one or more of the following are true:
Both fpathconf() and pathconf() fail if the following is true:
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97