fpathconf(3) Library Functions Manual fpathconf(3) fpathconf, pathconf - LIBRARY Standard C library (libc, -lc) #include long fpathconf(int fd, int name); long pathconf(const char *path, int name); fpathconf() name fd. pathconf() name path. , , ; , fpathconf() pathconf(), . name : _PC_LINK_MAX . fd path , . _POSIX_LINK_MAX. _PC_MAX_CANON , , fd path . _POSIX_MAX_CANON. _PC_MAX_INPUT , , fd path . _POSIX_MAX_INPUT. _PC_NAME_MAX path fd, . _POSIX_NAME_MAX. _PC_PATH_MAX , path fd . _POSIX_PATH_MAX. _PC_PIPE_BUF , FIFO. fpathconf() fd FIFO. fpathconf() path FIFO ; FIFO, . _POSIX_PIPE_BUF. _PC_CHOWN_RESTRICTED , chown(2) fchown(2) , , . POSIX.1, -1. _POSIX_CHOWN_RESTRICTED. fd path , . _PC_NO_TRUNC , , _POSIX_NAME_MAX, . _POSIX_NO_TRUNC. _PC_VDISABLE , , fd path . : o On error, -1 is returned and errno is set to indicate the error (for example, EINVAL, indicating that name is invalid). o name , -1 errno ( , errno , , errno , -1). o name , , -1, . o . , . EACCES (pathconf()) path. EBADF (fpathconf()) fd . EINVAL name. EINVAL name . ELOOP (pathconf()) path . ENAMETOOLONG (pathconf()) path. ENOENT (pathconf()) path path . ENOTDIR (pathconf()) , path, . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |fpathconf(), pathconf() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. , , , name _PC_NAME_MAX, . ; . . getconf(1), open(2), statfs(2), confstr(3), sysconf(3) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . fpathconf(3)