pathconf.2 (2010 09)
p
pathconf(2) pathconf(2)
fprintf(stderr, "Filename %s too long.\n", filebuf);
/* take error action */
}
else
if (errno) {
perror("pathconf");
/* take error action */
}
}
/* otherwise, _POSIX_NO_TRUNC is in effect for this directory */
if ((fd = open(filebuf, O_CREAT, mode)) < 0)
perror(filebuf);
DEPENDENCIES
NFS
The following error can occur:
[EOPNOTSUPP] path or fildes refers to a file for which a value for name cannot be determined.
In particular,
_PC_LINK_MAX, _PC_NAME_MAX, _PC_PIPE_BUF
,
_PC_PATH_MAX, _PC_NO_TRUNC, and _PC_CHOWN_RESTRICTED
, cannot be
determined for an NFS file.
AUTHOR
pathconf() and fpathconf() were developed by HP.
SEE ALSO
chown(2), errno(2), limits(5), unistd(5), termio(7).
STANDARDS CONFORMANCE
pathconf(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1, POSIX.2, POSIX.4
fpathconf(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1, POSIX.2, POSIX.4
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3