Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (n - r) pathconf(3)
The following table shows the values the pathconf( ) function returns for the symbolic constants
defined in the unistd.h file that correspond to the name parameter:
Table 5−1. Values of File-Related Constants
OSS
OSS /G reg, /G OSS /G OSS
Symbolic Constant dir dir FIFO reg char char socket
______________________________________________________________________________
_PC_CHOWN_RESTRICTED 101 0101
_PC_LINK_MAX -1 L* 128 1 1 1 128
_PC_MAX_CANON E* E* E* E* R* R* E*
_PC_MAX_INPUT E* E* E* E* R* R* E*
_PC_NAME_MAX 248 N* 248 8 248 8 248
_PC_NO_TRUNC 101 0101
_PC_PATH_MAX 1024 1024 1024 1024 1024 1024 1024
_PC_PIPE_BUF 4096 4096 4096 4096 4096 4096 E*
_PC_VDISABLE E* E* E* E* RR* RR* E*
E* [EINVAL] is returned.
L* /G returns -1, /G/volume returns -1, /G/volume/subvolume returns 1.
N* /G returns 7, /G/volume returns 8, /G/volume/subvolume returns 8,
/G/volume/subvolume/file returns 0 (zero).
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.
Use From the Guardian Environment
The pathconf( ) function is one of a set of functions that have the following effects when the first
of them is called from the Guardian environment:
• Two Guardian file system file numbers (not necessarily the next two available) are allo-
cated for the root directory and the current working directory. These file numbers cannot
be closed by calling the Guardian FILE_CLOSE_ procedure.
• The current working directory is assigned from the VOLUME attribute of the Guardian
environment =_DEFAULTS DEFINE.
• The use of static memory by the process increases slightly.
These effects occur only when the first of the set of functions is called. The effects are not cumu-
lative.
Use on Guardian Objects
A call to the pathconf( ) function for a regular file or a terminal character file in /G succeeds for
any of the following constants:
_PC_CHOWN_RESTRICTED
_PC_LINK_MAX
_PC_NAME_MAX
_PC_PATH_MAX
_PC_PIPE_BUF
If the file named by the path parameter is an empty Guardian subvolume (that is, a file in the /G
file system), pathconf( ) does not set errno to [ENOENT].
527187-017 Hewlett-Packard Company 5−47