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

fpathconf(3) Guardian Native C Library Calls Reference Manual
NAME
fpathconf - Gets le conguration attributes for an open 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 fpathconf(
int ledes,
int name);
PARAMETERS
filedes Species an open le descriptor obtained from a successful call to the accept(),
creat(), dup(), dup2(), fcntl( ), open(), pipe( ), socket(),orsocketpair() func-
tion.
name Species the conguration attribute to be queried. If this attribute is not applica-
ble to the le specied by the ledes parameter, the fpathconf() function returns
-1 and sets errno to indicate an error.
DESCRIPTION
The fpathconf() function allows an application to determine the characteristics of operations
supported by the le system underlying the open le associated with the ledes parameter.
The set of system variables from the limits.h or unistd.h header le that are returned by the
fpathconf() 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 ledes 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
234 Hewlett-Packard Company 527192-005