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
defined in the unistd.h file that correspond to the name parameter:
Table 2−1. 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 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.
[EINVAL] One of the following conditions occurred:
• The name parameter specifies an unknown or inapplicable characteristic.
2−50 Hewlett-Packard Company 527192-007