Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

fpathconf(3) Guardian Native C Library Calls Reference Manual
The following table shows the values the fpathconf() function returns for the symbolic constants
dened in the unistd.h le 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.
RETURN VALUES
Upon successful completion, the fpathconf() function returns the specied 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 le 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 ledes parameter to determine the value of name, but your
system does not allow name to be associated with the le specied by ledes.
The process does not have appropriate privilege to access the le specied by ledes.
ledes is invalid.
ERRORS
If any of the following conditions occurs, the fpathconf() function sets errno to the correspond-
ing value:
[EBADF] The ledes parameter is not a valid le descriptor.
[EFSBAD] The program attempted an operation involving a leset with a corrupted leset
catalog.
[EINVAL] One of the following conditions occurred:
The name parameter species an unknown or inapplicable characteristic.
250 Hewlett-Packard Company 527192-007