⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getconf.html

📁 posix标准英文,html格式
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2004 IEEE and The Open Group, All Rights Reserved --><title>getconf</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="getconf"></a> <a name="tag_04_61"></a><!-- getconf --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2004 Edition<br>Copyright &copy; 2001-2004 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_04_61_01"></a>NAME</h4><blockquote>getconf - get configuration values</blockquote><h4><a name="tag_04_61_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><code><tt>getconf</tt> <b>[</b> <tt>-v specification</tt> <b>]</b> <i>system_var</i><tt><br><br>getconf</tt> <b>[</b> <tt>-v specification</tt> <b>]</b> <i>path_var pathname</i><tt><br></tt></code></p></blockquote><h4><a name="tag_04_61_03"></a>DESCRIPTION</h4><blockquote><p>In the first synopsis form, the <i>getconf</i> utility shall write to the standard output the value of the variable specified bythe <i>system_var</i> operand.</p><p>In the second synopsis form, the <i>getconf</i> utility shall write to the standard output the value of the variable specifiedby the <i>path_var</i> operand for the path specified by the <i>pathname</i> operand.</p><p>The value of each configuration variable shall be determined as if it were obtained by calling the function from which it isdefined to be available by this volume of IEEE&nbsp;Std&nbsp;1003.1-2001 or by the System Interfaces volume ofIEEE&nbsp;Std&nbsp;1003.1-2001 (see the OPERANDS section). The value shall reflect conditions in the current operatingenvironment.</p></blockquote><h4><a name="tag_04_61_04"></a>OPTIONS</h4><blockquote><p>The <i>getconf</i> utility shall conform to the Base Definitions volume of IEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap12.html#tag_12_02">Section 12.2, Utility Syntax Guidelines</a>.</p><p>The following option shall be supported:</p><dl compact><dt><b>-v&nbsp;</b> <i>specification</i></dt><dd>Indicate a specific specification and version for which configuration variables shall be determined. If this option is notspecified, the values returned correspond to an implementation default conforming compilation environment. <p>If the command:</p><pre><tt>getconf _POSIX_V6_ILP32_OFF32</tt></pre><p>does not write <tt>"-1\n"</tt> or <tt>"undefined\n"</tt> to standard output, then commands of the form:</p><pre><tt>getconf -v POSIX_V6_ILP32_OFF32 ...</tt></pre><p>determine values for configuration variables corresponding to the POSIX_V6_ILP32_OFF32 compilation environment specified in <ahref="c99.html"><i>c99</i></a> , the EXTENDED DESCRIPTION.</p><p>If the command:</p><pre><tt>getconf _POSIX_V6_ILP32_OFFBIG</tt></pre><p>does not write <tt>"-1\n"</tt> or <tt>"undefined\n"</tt> to standard output, then commands of the form:</p><pre><tt>getconf -v POSIX_V6_ILP32_OFFBIG ...</tt></pre><p>determine values for configuration variables corresponding to the POSIX_V6_ILP32_OFFBIG compilation environment specified in <ahref="c99.html"><i>c99</i></a> , the EXTENDED DESCRIPTION.</p><p>If the command:</p><pre><tt>getconf _POSIX_V6_LP64_OFF64</tt></pre><p>does not write <tt>"-1\n"</tt> or <tt>"undefined\n"</tt> to standard output, then commands of the form:</p><pre><tt>getconf -v POSIX_V6_LP64_OFF64 ...</tt></pre><p>determine values for configuration variables corresponding to the POSIX_V6_LP64_OFF64 compilation environment specified in <ahref="c99.html"><i>c99</i></a> , the EXTENDED DESCRIPTION.</p><p>If the command:</p><pre><tt>getconf _POSIX_V6_LPBIG_OFFBIG</tt></pre><p>does not write <tt>"-1\n"</tt> or <tt>"undefined\n"</tt> to standard output, then commands of the form:</p><pre><tt>getconf -v POSIX_V6_LPBIG_OFFBIG ...</tt></pre><p>determine values for configuration variables corresponding to the POSIX_V6_LPBIG_OFFBIG compilation environment specified in <ahref="c99.html"><i>c99</i></a> , the EXTENDED DESCRIPTION.</p></dd></dl></blockquote><h4><a name="tag_04_61_05"></a>OPERANDS</h4><blockquote><p>The following operands shall be supported:</p><dl compact><dt><i>path_var</i></dt><dd>A name of a configuration variable. All of the variables in the Variable column of the table in the DESCRIPTION of the <a href="../functions/fpathconf.html"><i>fpathconf</i>()</a> function defined in the System Interfaces volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, without the enclosing braces, shall be supported. The implementation may add other localvariables.</dd><dt><i>pathname</i></dt><dd>A pathname for which the variable specified by <i>path_var</i> is to be determined.</dd><dt><i>system_var</i></dt><dd>A name of a configuration variable. All of the following variables shall be supported: <ul><li><p>The names in the Variable column of the table in the DESCRIPTION of the <a href="../functions/sysconf.html"><i>sysconf</i>()</a>function in the System Interfaces volume of IEEE&nbsp;Std&nbsp;1003.1-2001, except for the entries corresponding to _SC_CLK_TCK,_SC_GETGR_R_SIZE_MAX, and _SC_GETPW_R_SIZE_MAX, without the enclosing braces.</p><p>For compatibility with earlier versions, the following variable names shall also be supported:</p><blockquote><pre>POSIX2_C_BINDPOSIX2_C_DEVPOSIX2_CHAR_TERMPOSIX2_FORT_DEVPOSIX2_FORT_RUNPOSIX2_LOCALEDEFPOSIX2_SW_DEVPOSIX2_UPEPOSIX2_VERSION</pre></blockquote><p>and shall be equivalent to the same name prefixed with an underscore. This requirement may be removed in a future version.</p></li><li><p>The names of the symbolic constants used as the <i>name</i> argument of the <a href="../functions/confstr.html"><i>confstr</i>()</a> function in the System Interfaces volume of IEEE&nbsp;Std&nbsp;1003.1-2001,without the _CS_ prefix.</p></li><li><p>The names of the symbolic constants listed under the headings ``Maximum Values'' and ``Minimum Values'' in the description ofthe <a href="../basedefs/limits.h.html"><i>&lt;limits.h&gt;</i></a> header in the Base Definitions volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, without the enclosing braces.</p><p>For compatibility with earlier versions, the following variable names shall also be supported:</p><blockquote><pre>POSIX2_BC_BASE_MAXPOSIX2_BC_DIM_MAXPOSIX2_BC_SCALE_MAXPOSIX2_BC_STRING_MAXPOSIX2_COLL_WEIGHTS_MAXPOSIX2_EXPR_NEST_MAXPOSIX2_LINE_MAXPOSIX2_RE_DUP_MAX</pre></blockquote><p>and shall be equivalent to the same name prefixed with an underscore. This requirement may be removed in a future version.</p></li></ul><p>The implementation may add other local values.</p></dd></dl></blockquote><h4><a name="tag_04_61_06"></a>STDIN</h4><blockquote><p>Not used.</p></blockquote><h4><a name="tag_04_61_07"></a>INPUT FILES</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_61_08"></a>ENVIRONMENT VARIABLES</h4><blockquote><p>The following environment variables shall affect the execution of <i>getconf</i>:</p><dl compact><dt><i>LANG</i></dt><dd>Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap08.html#tag_08_02">Section 8.2, Internationalization Variables</a> forthe precedence of internationalization variables used to determine the values of locale categories.)</dd><dt><i>LC_ALL</i></dt><dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd><dt><i>LC_CTYPE</i></dt><dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte asopposed to multi-byte characters in arguments).</dd><dt><i>LC_MESSAGES</i></dt><dd>Determine the locale that should be used to affect the format and contents of diagnostic messages written to standarderror.</dd><dt><i>NLSPATH</i></dt>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -