HPlogo MPE/iX Developer's Kit Reference Manual Volume I: HP 3000 MPE/iX Computer Systems > Chapter 4  POSIX/iX Library Function Descriptions

fpathconf

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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:

EBADFCAUSEfildes was not a valid file descriptor.
 ACTIONSpecify a valid file descriptor.
EINVALCAUSEName was not a valid variable code, or the given variable cannot be associated with the specified file.
 ACTIONSpecify a valid variable code.

See Also

pathconf()

Feedback to webmaster