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

📄 ar.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<i>file</i>operands have the same last pathnamecomponent (basename), the results are unspecified.The implementation's archive format will not truncate valid filenamesof files added to or replaced in the archive.<dt><i>posname</i><dd>The name of a file in the archive file, used forrelative positioning; see options<b>-m</b>and<b>-r</b>.</dl></blockquote><h4><a name = "tag_000_000_044">&nbsp;</a>STDIN</h4><blockquote>Not used.</blockquote><h4><a name = "tag_000_000_045">&nbsp;</a>INPUT FILES</h4><blockquote>The input file named by<i>archive</i>must be a file in the format created by<i>ar</i><b>-r</b>.</blockquote><h4><a name = "tag_000_000_046">&nbsp;</a>ENVIRONMENT VARIABLES</h4><blockquote>The following environment variables affect the execution of<i>ar</i>:<dl compact><dt><i>LANG</i><dd>Provide a default value for the internationalisation variablesthat are unset or null.If<i>LANG</i>is unset or null, the corresponding value from theimplementation-dependent default locale will be used.If any of the internationalisation variables contains an invalid setting, theutility will behave as if none of the variables had been defined.<dt><i>LC_ALL</i><dd>If set to a non-empty string value,override the values of all the other internationalisation variables.<dt><i>LC_CTYPE</i><dd>Determine thelocale for the interpretation of sequences of bytes of text data ascharacters (for example, single- as opposed to multi-byte charactersin arguments and input files).<dt><i>LC_MESSAGES</i><dd>Determine the locale that should be used to affectthe format and contents of diagnosticmessages written to standard error.<dt><i>LC_TIME</i><dd>Determine the formatand content for date and timestrings written by<i>ar</i><b>-tv</b>.<dt><i>NLSPATH</i><dd>Determine the location of message cataloguesfor the processing of<i>LC_MESSAGES .</i><dt><i>TMPDIR</i><dd>Determine the pathname thatoverrides the default directory for temporary files, if any.</dl></blockquote><h4><a name = "tag_000_000_047">&nbsp;</a>ASYNCHRONOUS EVENTS</h4><blockquote>Default.</blockquote><h4><a name = "tag_000_000_048">&nbsp;</a>STDOUT</h4><blockquote>If the<b>-d</b>option is used with the<b>-v</b>option, the standard output format is:<code><p><tt>"d - %s\n"</tt>, &lt;<i>file</i>&gt;</code>where&lt;<i>file</i>&gt;is the operand specified on the command line.<p>If the<b>-p</b>option is used with the<b>-v</b>option,<i>ar</i>will precede the contents of each file with:<code><p><tt>"\n&lt;%s&gt;\n\n"</tt>, &lt;<i>file</i>&gt;</code><p>where&lt;<i>file</i>&gt;is the operand specified on the command line, if<i>file</i>operands were specified,and the name of the file in the archive if they were not.<p>If the<b>-r</b>option is used with the<b>-v</b>option, and<i>file</i>is already in the archive, the standard output format is:<code><p><tt>"r - %s\n"</tt>, &lt;<i>file</i>&gt;</code>where&lt;<i>file</i>&gt;is the operand specified on the command line.<p>If<i>file</i>is being added to the archive with the<b>-r</b>option, the standard output format is:<code><p><tt>"a - %s\n"</tt>, &lt;<i>file</i>&gt;</code>where&lt;<i>file</i>&gt;is the operand specified on the command line.<p>If the<b>-t</b>option is used,<i>ar</i>writes the names of the files to the standard output in the format:<code><p><tt>"%s\n"</tt>, &lt;<i>file</i>&gt;</code>where&lt;<i>file</i>&gt;is the operand specified on the command line,if<i>file</i>operands were specified, or the name of the file in thearchive if they were not.<p>If the<b>-t</b>option is used with the<b>-v</b>option, the standard output format is:<code><p><tt>"%s %u/%u %u %s %d %d:%d %d %s\n"</tt>, &lt;<i>member&nbsp;mode</i>&gt;,&lt;<i>user&nbsp;ID</i>&gt;,&lt;<i>group&nbsp;ID</i>&gt;,&lt;<i>number&nbsp;of&nbsp;bytes&nbsp;in&nbsp;member</i>&gt;,&lt;<i>abbreviated&nbsp;month</i>&gt;,&lt;<i>day-of-month</i>&gt;,&lt;<i>hour</i>&gt;,&lt;<i>minute</i>&gt;,&lt;<i>year</i>&gt;,&lt;<i>file</i>&gt;</p></code><p>Where:<dl compact><dt><i>&lt;file&gt;</i><dd>is the operand specified on the command line, if<i>file</i>operands were specified, or the name of the file in thearchive if they were not.<dt><i>&lt;member&nbsp;mode&gt;</i><dd>is formatted the same as the&lt;<i>file&nbsp;mode</i>&gt;string defined in the STDOUT section of<i><a href="ls.html">ls</a></i>,except that the first character, the&lt;<i>entry type</i>&gt;,is not used;the string represents the file mode of the archive memberat the time it was added to or replaced in the archive.</dl><p>The following represent the last-modification timeof a file when it was most recentlyadded to or replaced in the archive:<dl compact><dt><i>&lt;abbreviated&nbsp;month&gt;</i><dd>is equivalent to the<b>%b</b>format in<i><a href="date.html">date</a></i>.<dt><i>&lt;day-of-month&gt;</i><dd>is equivalent to the<b>%e</b>format in<i><a href="date.html">date</a></i>.<dt><i>&lt;hour&gt;</i><dd>is equivalent to the<b>%H</b>format in<i><a href="date.html">date</a></i>.<dt><i>&lt;minute&gt;</i><dd>is equivalent to the<b>%M</b>format in<i><a href="date.html">date</a></i>.<dt><i>&lt;year&gt;</i><dd>is equivalent to the<b>%Y</b>format in<i><a href="date.html">date</a></i>.</dl><p>When<i>LC_TIME</i>does not specify the POSIX locale, a different formatand order of presentation of these fields relative to each othermay be used in a format appropriate in the specified locale.<p>If the<b>-x</b>option is used with the<b>-v</b>option, the standard output format is:<p><code><tt>"x - %s\n"</tt>, &lt;<i>file</i>&gt;</code>where&lt;<i>file</i>&gt;is the operand specified on the command line,if<i>file</i>operands were specified, or the name of the file in thearchive if they were not.</blockquote><h4><a name = "tag_000_000_049">&nbsp;</a>STDERR</h4><blockquote>Used only for diagnostic messages.The diagnostic message about creating a new archive when<b>-c</b>is not specified will not modify the exit status.</blockquote><h4><a name = "tag_000_000_050">&nbsp;</a>OUTPUT FILES</h4><blockquote>Archives are files with unspecified formats.</blockquote><h4><a name = "tag_000_000_051">&nbsp;</a>EXTENDED DESCRIPTION</h4><blockquote>None.</blockquote><h4><a name = "tag_000_000_052">&nbsp;</a>EXIT STATUS</h4><blockquote>The following exit values are returned:<dl compact><dt>0<dd>Successful completion.<dt>&gt;0<dd>An error occurred.</dl></blockquote><h4><a name = "tag_000_000_053">&nbsp;</a>CONSEQUENCES OF ERRORS</h4><blockquote>Default.</blockquote><h4><a name = "tag_000_000_054">&nbsp;</a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_000_055">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_000_056">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>The IEEE PASC 1003.2 Interpretations Committee has forwarded concerns about parts of this interface definition to the IEEE PASC Shell and Utilities Working Groupwhich is identifying the corrections.A future revision of this specification will align withIEEE Std. 1003.2b when finalised.</blockquote><h4><a name = "tag_000_000_057">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="c89.html">c89</a></i>,<i><a href="cc.html">cc</a></i>,<i><a href="cpio.html">cpio</a></i>,<i><a href="pax.html">pax</a></i>,<i><a href="strip.html">strip</a></i>.the <b>XSH</b> specification<i><a href="../xsh/unistd.h.html">&lt;unistd.h&gt;</a></i>description of{POSIX_NO_TRUNC}.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

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