fpathconf [ MPE/iX Developer's Kit Reference Manual Volume I ] MPE/iX 5.0 Documentation
MPE/iX Developer's Kit Reference Manual Volume I
fpathconf
Returns configuration variable for file descriptor.
Syntax
#include <unistd.h>
long fpathconf(int fildes, int name);
Parameters
fildes is an open file descriptor for the file or directory of which
you want to determine the configuration variables.
name is a symbol indicating the variable, the value of which you
want to determine.
Return Values
variable value fpathconf() lets you determine the value of a
configuration variable associated with a particular file
descriptor. If fpathconf() can determine the value of
the requested variable, it returns that value as its
result.
-1 If fpathconf() cannot determine the value of the
specified variable, it returns -1 and sets errno
fpathconf() works exactly like pathconf(), except that it takes a file
descriptor as an argument rather than a path name. For further details,
see pathconf().
Errors
If an error occurs, errno is set to one of the following values:
EBADF CAUSE fildes was not a valid file descriptor.
ACTION Specify a valid file descriptor.
EINVAL CAUSE Name was not a valid variable code, or the given
variable cannot be associated with the specified
file.
ACTION Specify a valid variable code.
See Also
pathconf()
MPE/iX 5.0 Documentation