isposix

Un outil pour savoir si une commande est posix - retour accueil

git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |

strip.html (10432B)


      1 <!-- Copyright 2001-2024 IEEE and The Open Group, All Rights Reserved -->
      2 <!DOCTYPE HTML>
      3 <html lang="en">
      4 <head>
      5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0">
      6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      7 <link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group rhtm tool v1.2.4 -->
      8 <!-- Copyright (c) 2001-2024 The Open Group, All Rights Reserved -->
      9 <title>strip</title>
     10 </head>
     11 <body bgcolor="white">
     12 <div class="NAVHEADER">
     13 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
     14 <tr class="nav">
     15 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/strings.html" accesskey="P">&lt;&lt;&lt;
     16 Previous</a></td>
     17 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
     18 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/stty.html" accesskey="N">Next &gt;&gt;&gt;</a></td>
     19 </tr>
     20 </table>
     21 <hr align="left" width="100%"></div>
     22 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3">
     23 <center><font size="2">The Open Group Base Specifications Issue 8<br>
     24 IEEE Std 1003.1-2024<br>
     25 Copyright © 2001-2024 The IEEE and The Open Group</font></center>
     26 <hr size="2" noshade>
     27 <a name="top" id="top"></a> <a name="strip" id="strip"></a> <a name="tag_20_115" id="tag_20_115"></a><!-- strip -->
     28 <h4 class="mansect"><a name="tag_20_115_01" id="tag_20_115_01"></a>NAME</h4>
     29 <blockquote>strip — remove unnecessary information from strippable files (<b>DEVELOPMENT</b>)</blockquote>
     30 <h4 class="mansect"><a name="tag_20_115_02" id="tag_20_115_02"></a>SYNOPSIS</h4>
     31 <blockquote class="synopsis">
     32 <div class="box"><code><tt><sup>[<a href="javascript:open_code('SD')">SD</a>]</sup> <img src="../images/opt-start.gif" alt=
     33 "[Option Start]" border="0"> strip</tt> <i>file</i><tt>... <img src="../images/opt-end.gif" alt="[Option End]" border=
     34 "0"></tt></code></div>
     35 </blockquote>
     36 <h4 class="mansect"><a name="tag_20_115_03" id="tag_20_115_03"></a>DESCRIPTION</h4>
     37 <blockquote>
     38 <p>A strippable file is defined as a relocatable, object, or executable file. <sup>[<a href=
     39 "javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> &nbsp;On
     40 XSI-conformant systems, a strippable file can also be an archive of object or relocatable files. <img src="../images/opt-end.gif"
     41 alt="[Option End]" border="0"></p>
     42 <p>The <i>strip</i> utility shall remove from strippable files named by the <i>file</i> operands any information the implementor
     43 deems unnecessary for execution of those files. The nature of that information is unspecified. The effect of <i>strip</i> on object
     44 and executable files shall be similar to the use of the <b>-s</b> option to <a href="../utilities/c17.html"><i>c17</i></a>.
     45 <sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">
     46 &nbsp;The effect of <i>strip</i> on an archive of object files shall be similar to the use of the <b>-s</b> option to <a href=
     47 "../utilities/c17.html"><i>c17</i></a> for each object file in the archive. <img src="../images/opt-end.gif" alt="[Option End]"
     48 border="0"></p>
     49 </blockquote>
     50 <h4 class="mansect"><a name="tag_20_115_04" id="tag_20_115_04"></a>OPTIONS</h4>
     51 <blockquote>
     52 <p>None.</p>
     53 </blockquote>
     54 <h4 class="mansect"><a name="tag_20_115_05" id="tag_20_115_05"></a>OPERANDS</h4>
     55 <blockquote>
     56 <p>The following operand shall be supported:</p>
     57 <dl compact>
     58 <dd></dd>
     59 <dt><i>file</i></dt>
     60 <dd>A pathname referring to a strippable file.</dd>
     61 </dl>
     62 </blockquote>
     63 <h4 class="mansect"><a name="tag_20_115_06" id="tag_20_115_06"></a>STDIN</h4>
     64 <blockquote>
     65 <p>Not used.</p>
     66 </blockquote>
     67 <h4 class="mansect"><a name="tag_20_115_07" id="tag_20_115_07"></a>INPUT FILES</h4>
     68 <blockquote>
     69 <p>The input files shall be in the form of strippable files successfully produced by any compiler defined by this volume of
     70 POSIX.1-2024 <sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]"
     71 border="0"> &nbsp;or produced by creating or updating an archive of such files using the <a href=
     72 "../utilities/ar.html"><i>ar</i></a> utility. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></p>
     73 </blockquote>
     74 <h4 class="mansect"><a name="tag_20_115_08" id="tag_20_115_08"></a>ENVIRONMENT VARIABLES</h4>
     75 <blockquote>
     76 <p>The following environment variables shall affect the execution of <i>strip</i>:</p>
     77 <dl compact>
     78 <dd></dd>
     79 <dt><i>LANG</i></dt>
     80 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href=
     81 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization
     82 variables used to determine the values of locale categories.)</dd>
     83 <dt><i>LC_ALL</i></dt>
     84 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd>
     85 <dt><i>LC_CTYPE</i></dt>
     86 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as
     87 opposed to multi-byte characters in arguments).</dd>
     88 <dt><i>LC_MESSAGES</i></dt>
     89 <dd><br>
     90 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd>
     91 <dt><i>NLSPATH</i></dt>
     92 <dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">
     93 Determine the location of messages objects and message catalogs. <img src="../images/opt-end.gif" alt="[Option End]" border=
     94 "0"></dd>
     95 </dl>
     96 </blockquote>
     97 <h4 class="mansect"><a name="tag_20_115_09" id="tag_20_115_09"></a>ASYNCHRONOUS EVENTS</h4>
     98 <blockquote>
     99 <p>Default.</p>
    100 </blockquote>
    101 <h4 class="mansect"><a name="tag_20_115_10" id="tag_20_115_10"></a>STDOUT</h4>
    102 <blockquote>
    103 <p>Not used.</p>
    104 </blockquote>
    105 <h4 class="mansect"><a name="tag_20_115_11" id="tag_20_115_11"></a>STDERR</h4>
    106 <blockquote>
    107 <p>The standard error shall be used only for diagnostic messages.</p>
    108 </blockquote>
    109 <h4 class="mansect"><a name="tag_20_115_12" id="tag_20_115_12"></a>OUTPUT FILES</h4>
    110 <blockquote>
    111 <p>The <i>strip</i> utility shall produce strippable files of unspecified format.</p>
    112 </blockquote>
    113 <h4 class="mansect"><a name="tag_20_115_13" id="tag_20_115_13"></a>EXTENDED DESCRIPTION</h4>
    114 <blockquote>
    115 <p>None.</p>
    116 </blockquote>
    117 <h4 class="mansect"><a name="tag_20_115_14" id="tag_20_115_14"></a>EXIT STATUS</h4>
    118 <blockquote>
    119 <p>The following exit values shall be returned:</p>
    120 <dl compact>
    121 <dd></dd>
    122 <dt>&nbsp;0</dt>
    123 <dd>Successful completion.</dd>
    124 <dt>&gt;0</dt>
    125 <dd>An error occurred.</dd>
    126 </dl>
    127 </blockquote>
    128 <h4 class="mansect"><a name="tag_20_115_15" id="tag_20_115_15"></a>CONSEQUENCES OF ERRORS</h4>
    129 <blockquote>
    130 <p>Default.</p>
    131 </blockquote>
    132 <hr>
    133 <div class="box"><em>The following sections are informative.</em></div>
    134 <h4 class="mansect"><a name="tag_20_115_16" id="tag_20_115_16"></a>APPLICATION USAGE</h4>
    135 <blockquote>
    136 <p>None.</p>
    137 </blockquote>
    138 <h4 class="mansect"><a name="tag_20_115_17" id="tag_20_115_17"></a>EXAMPLES</h4>
    139 <blockquote>
    140 <p>None.</p>
    141 </blockquote>
    142 <h4 class="mansect"><a name="tag_20_115_18" id="tag_20_115_18"></a>RATIONALE</h4>
    143 <blockquote>
    144 <p>Historically, this utility has been used to remove the symbol table from a strippable file. It was included since it is known
    145 that the amount of symbolic information can amount to several megabytes; the ability to remove it in a portable manner was deemed
    146 important, especially for smaller systems.</p>
    147 <p>The behavior of <i>strip</i> on object and executable files is said to be the same as the <b>-s</b> option to a compiler. While
    148 the end result is essentially the same, it is not required to be identical.</p>
    149 <p>XSI-conformant systems support use of <i>strip</i> on archive files containing object files or relocatable files.</p>
    150 </blockquote>
    151 <h4 class="mansect"><a name="tag_20_115_19" id="tag_20_115_19"></a>FUTURE DIRECTIONS</h4>
    152 <blockquote>
    153 <p>None.</p>
    154 </blockquote>
    155 <h4 class="mansect"><a name="tag_20_115_20" id="tag_20_115_20"></a>SEE ALSO</h4>
    156 <blockquote>
    157 <p><a href="../utilities/ar.html#"><i>ar</i></a> , <a href="../utilities/c17.html#"><i>c17</i></a></p>
    158 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a></p>
    159 </blockquote>
    160 <h4 class="mansect"><a name="tag_20_115_21" id="tag_20_115_21"></a>CHANGE HISTORY</h4>
    161 <blockquote>
    162 <p>First released in Issue 2.</p>
    163 </blockquote>
    164 <h4 class="mansect"><a name="tag_20_115_22" id="tag_20_115_22"></a>Issue 6</h4>
    165 <blockquote>
    166 <p>This utility is marked as part of the Software Development Utilities option.</p>
    167 </blockquote>
    168 <h4 class="mansect"><a name="tag_20_115_23" id="tag_20_115_23"></a>Issue 7</h4>
    169 <blockquote>
    170 <p>Austin Group Interpretation 1003.1-2001 #103 is applied.</p>
    171 </blockquote>
    172 <h4 class="mansect"><a name="tag_20_115_24" id="tag_20_115_24"></a>Issue 8</h4>
    173 <blockquote>
    174 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p>
    175 <p>Austin Group Defect 1330 is applied, removing obsolescent interfaces.</p>
    176 </blockquote>
    177 <div class="box"><em>End of informative text.</em></div>
    178 <hr>
    179 <p>&nbsp;</p>
    180 <a href="#top"><span class="topOfPage">return to top of page</span></a><br>
    181 <hr size="2" noshade>
    182 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br>
    183 POSIX™ is a Trademark of The IEEE.<br>
    184 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br>
    185 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
    186 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a>
    187 ]</font></center>
    188 <hr size="2" noshade>
    189 <div class="NAVHEADER">
    190 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
    191 <tr class="nav">
    192 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/strings.html" accesskey="P">&lt;&lt;&lt;
    193 Previous</a></td>
    194 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
    195 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/stty.html" accesskey="N">Next &gt;&gt;&gt;</a></td>
    196 </tr>
    197 </table>
    198 <hr align="left" width="100%"></div>
    199 </body>
    200 </html>