Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (n - r) pathconf(3)
The following table shows the values the pathconf( ) function returns for the symbolic constants
dened in the unistd.h le that correspond to the name parameter:
Table 51. 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/le 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 rst
of them is called from the Guardian environment:
Two Guardian le system le numbers (not necessarily the next two available) are allo-
cated for the root directory and the current working directory. These le 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 rst 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 le or a terminal character le 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 le named by the path parameter is an empty Guardian subvolume (that is, a le in the /G
le system), pathconf() does not set errno to [ENOENT].
527187-007 Hewlett-Packard Company 529