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

OSS Library Calls (n - r) pathconf(3)
NAME
pathconf - Gets conguration attributes for a le
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series native Guardian processes: implicit libraries
H-series OSS processes: implicit libraries
SYNOPSIS
#include <unistd.h>
long int pathconf(
const char *path,
int name);
PARAMETERS
path Species the pathname of the le. If the nal component of path is a symbolic
link, it will be traversed and lename resolution will continue.
name Species the conguration attribute to be queried. If this attribute is not applica-
ble to the le specied by the path parameter, the pathconf( ) function returns -1
and sets errno to indicate an error.
DESCRIPTION
The pathconf( ) function allows an application to determine the characteristics of operations sup-
ported by the le system underlying the le named by the path parameter. Read, write, or exe-
cute permission of the named le is not required, but all directories in the path leading to the le
must be searchable.
The set of system variables from the limits.h or unistd.h header le that are returned by the
pathconf( ) function, and the symbolic constants dened in the unistd.h header le that
correspond to the name parameter, are as follows:
LINK_MAX Is the maximum number of links to the le. If the path parameter refers to a
directory, the value returned applies to the directory itself. This variable is not
available at compile time.
Value of name: _PC_LINK_MAX
MAX_CANON
Is the maximum number of bytes in a canonical input line. This attribute is
applicable only to terminal devices. This variable is not available at compile
time.
Value of name: _PC_MAX_CANON
MAX_INPUT Is the maximum number of bytes an application can require as input before that
input is read. This attribute is applicable only to terminal devices. This variable
is not available at compile time.
Value of name: _PC_MAX_INPUT
NAME_MAX Is the maximum number of bytes in a lename (not including a terminating null).
This number can be as small as 8 but is never larger than 255. This variable is
not available at compile time.
Value of name: _PC_NAME_MAX
527187-007 Hewlett-Packard Company 527