Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
fpathconf(3) Guardian Native C Library Calls Reference Manual
NAME
fpathconf - Gets file configuration attributes for an open file
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 filedes,
int name);
PARAMETERS
filedes Specifies an open file descriptor obtained from a successful call to the accept(),
creat(), dup(), dup2(), fcntl( ), open(), pipe( ), socket(),orsocketpair() func-
tion.
name Specifies the configuration attribute to be queried. If this attribute is not applica-
ble to the file specified by the filedes 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 file system underlying the open file associated with the filedes parameter.
The set of system variables from the limits.h or unistd.h header file that are returned by the
fpathconf() function, and the symbolic constants defined in the unistd.h header file that
correspond to the name parameter, are as follows:
LINK_MAX Is the maximum number of links to the file. If the filedes 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 filename (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
2−48 Hewlett-Packard Company 527192-007