Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (f) fpathconf(3)
The following table shows the values the fpathconf() function returns for the symbolic constants
defined in the unistd.h file that correspond to the name parameter:
Table 21. Values of File-Related Constants for Open Files
OSS Bound
OSS reg, /G OSS /G OSS AF_UNIX
Symbolic Constant dir FIFO reg char char pipe socket
__________________________________________________________________________________
_PC_CHOWN_RESTRICTED 11 010E*1
_PC_LINK_MAX -1128111E*128
_PC_MAX_CANON E* E* E* R* R* E* E*
_PC_MAX_INPUT E* E* E* R* R* E* E*
_PC_NAME_MAX 248 248 8 248 8 E* 248
_PC_NO_TRUNC 11 010E*1
_PC_PATH_MAX 1024 1024 1024 1024 1024 E* 1024
_PC_PIPE_BUF 4096 4096 4096 4096 4096 4096 E*
_PC_VDISABLE E* E* E* RR* RR* E* E*
E* [EINVAL] is returned.
R* If the device is a tty, the run-time value is returned; otherwise, [EINVAL] is
returned.
RR* If the device is a tty, 255 is returned; otherwise, [EINVAL] is returned.
NOTES
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, you can use
this function with 32-bit or 64-bit OSS applications.
RETURN VALUES
Upon successful completion, the fpathconf() function returns the specified parameter. Other-
wise, the value -1 is returned and errno is set to indicate the error. The value -1 is returned, with
errno unchanged, if the variable corresponding to name has no limit for the path or file descrip-
tor.
The fpathconf() function returns the value -1 and sets errno if one or more of the following are
true:
Your system needs to use the filedes parameter to determine the value of name, but your
system does not allow name to be associated with the file specified by filedes.
The process does not have appropriate privilege to access the file specified by filedes.
filedes is invalid.
ERRORS
If any of the following conditions occurs, the fpathconf() function sets errno to the correspond-
ing value:
[EBADF] The filedes parameter is not a valid file descriptor.
[EFSBAD] The program attempted an operation involving a fileset with a corrupted fileset
catalog.
527192-018 Hewlett-Packard Company 285