sysconf.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 66 行
3
66 行
.\" SCCSID: @(#)sysconf.3 2.3 8/10/87.TH sysconf 3.SH Namesysconf \- get configurable system variables (POSIX).SH Syntax.nf.B #include <unistd.h>.PP.B long sysconf(\fIname\fP).B int \fIname\fP;.br.SH DescriptionThe.PN sysconffunction provides a method for the application to determine the currentvalue of a configurable system limit or option..NXR "sysconf subroutine".PPThe .IR nameargument represents the system variable to be queried. The following tablelists the system 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 ValueARG_MAX _SC_ARG_MAXCHILD_MAX _SC_CHILD_MAXCLK_TCK _SC_CLK_TCKNGROUPS_MAX _SC_NGROUPS_MAXOPEN_MAX _SC_OPEN_MAXPASS_MAX _SC_PASS_MAX_POSIX_JOB_CONTROL _SC_JOB_CONTROL_POSIX_SAVED_IDS _SC_SAVED_IDS_POSIX_VERSION _SC_VERSION_XOPEN_VERSION _SC_XOPEN_VERSION.EE.SH Return ValuesUpon successful completion, the.PN sysconf function returns the current variable value on the system..PPIf .IR nameis an invalid value,.PN sysconf returns \-1 and .I errnois set to indicate the reason. If the variable corresponding to.IR nameis not defined on the system,.PN sysconf returns \-1 without changing the value of.I errno..SH DiagnosticsThe.PN sysconf function fails if the following occurs:.TP 15[EINVAL]The value of the \fIname\fP argument is invalid.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?