pathconf.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 94 行
3
94 行
.\" SCCSID: @(#)pathconf.3 2.3 8/10/87.TH pathconf 3.SH Namepathconf, fpathconf \- get configurable pathname variables (POSIX).SH Syntax.nf.B #include <unistd.h>.PP.B long pathconf(\fIpath, name\fP).B char *\fIpath\fP;.B int \fIname\fP;.PP.B long fpathconf(\fIfildes, name\fP).B int \fIfildes, name\fP;.fi.SH DescriptionThe.MS pathconf 3and.MS fpathconf 3functions provide a method for the application to determine the currentvalue of a configurable limit or option that is associated with a file ordirectory..NXR "pathconf subroutine".NXR "fpathconf subroutine".PPFor.MS pathconf 3 ,the.IR pathargument points to the pathname of a file or directory. For.MS fpathconf 3 ,the.IR fildesargument is an open file descriptor..PPThe .IR nameargument represents the variable to be queried relative to that file ordirectory. The following tablelists the variables which may be queried and the correspondingvalue for the.IR nameargument. The values for the.IR nameargument are defined in the <unistd.h> header file..EXVariable name ValueLINK_MAX _PC_LINK_MAXMAX_CANON _PC_MAX_CANONMAX_INPUT _PC_MAX_INPUTNAME_MAX _PC_NAME_MAXPATH_MAX _PC_PATH_MAXPIPE_BUF _PC_PIPE_BUF_POSIX_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED_POSIX_NO_TRUNC _PC_NO_TRUNC_POSIX_VDISABLE _PC_VDISABLE.EE.SH Return ValuesUpon successful completion, the.MS pathconf 3and.MS fpathconf 3functions return the current variable value for the file or directory..PPIf .IR nameis an invalid value,.MS pathconf 3and.MS fpathconf 3return \-1 and .I errnois set to indicate the reason. If the variable corresponding to.IR nameis not defined on the system,.MS pathconf 3and.MS fpathconf 3return \-1 without changing the value of.I errno..SH DiagnosticsThe.MS pathconf 3and.MS fpathconf 3functions fail if the following occurs:.TP 15[EINVAL]The value of the \fIname\fP argument is invalid..SH See Also<unistd.h>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?