#include <unistd.h> int pathconf( const char *path, int name );
path
was not a directory whan a
directory was expected.
pathconf()
gets a value for the configuration option name
for the open file descriptor filedes
.
The possible values for name
are:
filedes
or
path
refer to a directory, then the value applies to the whole
directory. The corresponding macro is _POSIX_LINK_MAX
.
filedes
or path
must refer to a terminal. The corresponding macro is
_POSIX_MAX_CANON
.
filedes
or
path
must refer to a terminal. The corresponding macro is
_POSIX_MAX_INPUT
.
path
or
filedes
. The process is allowed to create. The corresponding macro
is _POSIX_NAME_MAX
.
path
or
filedes
is the current working directory. The corresponding macro
is _POSIX_PATH_MAX
.
filedes
must refer to a
pipe or FIFO and path
must refer to a FIFO. The corresponding macro
is _POSIX_PIPE_BUF
.
filedes
or path
refer to a directory, then this applies to all
files in that directory. The corresponding macro is
_POSIX_CHOWN_RESTRICTED
.
Files with name lengths longer than the value returned for name
equal
_PC_NAME_MAX
may exist in the given directory.
Copyright © 1988-2008 OAR Corporation