isposix

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

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

sccs.html (19458B)


      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>sccs</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/sact.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/sed.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="sccs" id="sccs"></a> <a name="tag_20_108" id="tag_20_108"></a><!-- sccs -->
     28 <h4 class="mansect"><a name="tag_20_108_01" id="tag_20_108_01"></a>NAME</h4>
     29 <blockquote>sccs — front end for the SCCS subsystem (<b>DEVELOPMENT</b>)</blockquote>
     30 <h4 class="mansect"><a name="tag_20_108_02" id="tag_20_108_02"></a>SYNOPSIS</h4>
     31 <blockquote class="synopsis">
     32 <div class="box"><code><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt=
     33 "[Option Start]" border="0"> sccs</tt> <b>[</b><tt>-r</tt><b>] [</b><tt>-d</tt> <i>path</i><b>] [</b><tt>-p</tt>
     34 <i>path</i><b>]</b> <i>command</i> <b>[</b><i>options</i><tt>...</tt><b>] [</b><i>operands</i><tt>...</tt><b>]</b> <tt><img src=
     35 "../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div>
     36 </blockquote>
     37 <h4 class="mansect"><a name="tag_20_108_03" id="tag_20_108_03"></a>DESCRIPTION</h4>
     38 <blockquote>
     39 <p>The <i>sccs</i> utility is a front end to the SCCS programs. It also includes the capability to run set-user-id to another user
     40 to provide additional protection.</p>
     41 <p>The <i>sccs</i> utility shall invoke the specified <i>command</i> with the specified <i>options</i> and <i>operands</i>. By
     42 default, each of the <i>operands</i> shall be modified by prefixing it with the string <tt>"SCCS/s."</tt>.</p>
     43 <p>The <i>command</i> can be the name of one of the SCCS utilities in this volume of POSIX.1-2024 (<a href=
     44 "../utilities/admin.html"><i>admin</i></a>, <a href="../utilities/delta.html"><i>delta</i></a>, <a href=
     45 "../utilities/get.html"><i>get</i></a>, <a href="../utilities/prs.html"><i>prs</i></a>, <a href=
     46 "../utilities/rmdel.html"><i>rmdel</i></a>, <a href="../utilities/sact.html"><i>sact</i></a>, <a href=
     47 "../utilities/unget.html"><i>unget</i></a>, <a href="../utilities/val.html"><i>val</i></a>, or <a href=
     48 "../utilities/what.html"><i>what</i></a>) or one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section.</p>
     49 </blockquote>
     50 <h4 class="mansect"><a name="tag_20_108_04" id="tag_20_108_04"></a>OPTIONS</h4>
     51 <blockquote>
     52 <p>The <i>sccs</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax
     53 Guidelines</i></a> , except that <i>options</i> operands are actually options to be passed to the utility named by <i>command</i>.
     54 When the portion of the command:</p>
     55 <pre>
     56 <i>command </i><b>[</b><i>options</i><tt> ... </tt><b>] [</b><i>operands</i><tt> ... </tt><b>]</b><tt>
     57 </tt></pre>
     58 <p>is considered, all of the pseudo-utilities used as <i>command</i> shall support the Utility Syntax Guidelines. Any of the other
     59 SCCS utilities that can be invoked in this manner support the Guidelines to the extent indicated by their individual OPTIONS
     60 sections.</p>
     61 <p>The following options shall be supported preceding the <i>command</i> operand:</p>
     62 <dl compact>
     63 <dd></dd>
     64 <dt><b>-d&nbsp;</b><i>path</i></dt>
     65 <dd>A pathname of a directory to be used as a root directory for the SCCS files. The default shall be the current directory. The
     66 <b>-d</b> option shall take precedence over the <i>PROJECTDIR</i> variable. See <b>-p</b>.</dd>
     67 <dt><b>-p&nbsp;</b><i>path</i></dt>
     68 <dd>A pathname of a directory in which the SCCS files are located. The default shall be the <b>SCCS</b> directory.
     69 <p>The <b>-p</b> option differs from the <b>-d</b> option in that the <b>-d</b> option-argument shall be prefixed to the entire
     70 pathname and the <b>-p</b> option-argument shall be inserted before the final component of the pathname. For example:</p>
     71 <pre>
     72 <tt>sccs -d /x -p y get a/b
     73 </tt></pre>
     74 <p>converts to:</p>
     75 <pre>
     76 <tt>get /x/a/y/s.b
     77 </tt></pre>
     78 <p>This allows the creation of aliases such as:</p>
     79 <pre>
     80 <tt>alias syssccs="sccs -d /usr/src"
     81 </tt></pre>
     82 <p>which is used as:</p>
     83 <pre>
     84 <tt>syssccs get cmd/who.c
     85 </tt></pre></dd>
     86 <dt><b>-r</b></dt>
     87 <dd>Invoke <i>command</i> with the real user ID of the process, not any effective user ID that the <i>sccs</i> utility is set to.
     88 Certain commands (<a href="../utilities/admin.html"><i>admin</i></a>, <b>check</b>, <b>clean</b>, <b>diffs</b>, <b>info</b>,
     89 <a href="../utilities/rmdel.html"><i>rmdel</i></a>, and <b>tell</b>) cannot be run set-user-ID by all users, since this would allow
     90 anyone to change the authorizations. These commands are always run as the real user.</dd>
     91 </dl>
     92 </blockquote>
     93 <h4 class="mansect"><a name="tag_20_108_05" id="tag_20_108_05"></a>OPERANDS</h4>
     94 <blockquote>
     95 <p>The following operands shall be supported:</p>
     96 <dl compact>
     97 <dd></dd>
     98 <dt><i>command</i></dt>
     99 <dd>An SCCS utility name or the name of one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section.</dd>
    100 <dt><i>options</i></dt>
    101 <dd>An option or option-argument to be passed to <i>command</i>.</dd>
    102 <dt><i>operands</i></dt>
    103 <dd>An operand to be passed to <i>command</i>.</dd>
    104 </dl>
    105 </blockquote>
    106 <h4 class="mansect"><a name="tag_20_108_06" id="tag_20_108_06"></a>STDIN</h4>
    107 <blockquote>
    108 <p>See the utility description for the specified <i>command</i>.</p>
    109 </blockquote>
    110 <h4 class="mansect"><a name="tag_20_108_07" id="tag_20_108_07"></a>INPUT FILES</h4>
    111 <blockquote>
    112 <p>See the utility description for the specified <i>command</i>.</p>
    113 </blockquote>
    114 <h4 class="mansect"><a name="tag_20_108_08" id="tag_20_108_08"></a>ENVIRONMENT VARIABLES</h4>
    115 <blockquote>
    116 <p>The following environment variables shall affect the execution of <i>sccs</i>:</p>
    117 <dl compact>
    118 <dd></dd>
    119 <dt><i>LANG</i></dt>
    120 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href=
    121 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization
    122 variables used to determine the values of locale categories.)</dd>
    123 <dt><i>LC_ALL</i></dt>
    124 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd>
    125 <dt><i>LC_CTYPE</i></dt>
    126 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as
    127 opposed to multi-byte characters in arguments and input files).</dd>
    128 <dt><i>LC_MESSAGES</i></dt>
    129 <dd><br>
    130 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd>
    131 <dt><i>NLSPATH</i></dt>
    132 <dd>Determine the location of messages objects and message catalogs.</dd>
    133 <dt><i>PROJECTDIR</i></dt>
    134 <dd><br>
    135 Provide a default value for the <b>-d</b> <i>path</i> option. If the value of <i>PROJECTDIR</i> begins with a &lt;slash&gt;, it
    136 shall be considered an absolute pathname; otherwise, the value of <i>PROJECTDIR</i> is treated as a user name and that user's
    137 initial working directory shall be examined for a subdirectory <b>src</b> or <b>source</b>. If such a directory is found, it shall
    138 be used. Otherwise, the value shall be used as a relative pathname.</dd>
    139 </dl>
    140 <p>Additional environment variable effects may be found in the utility description for the specified <i>command</i>.</p>
    141 </blockquote>
    142 <h4 class="mansect"><a name="tag_20_108_09" id="tag_20_108_09"></a>ASYNCHRONOUS EVENTS</h4>
    143 <blockquote>
    144 <p>Default.</p>
    145 </blockquote>
    146 <h4 class="mansect"><a name="tag_20_108_10" id="tag_20_108_10"></a>STDOUT</h4>
    147 <blockquote>
    148 <p>See the utility description for the specified <i>command</i>.</p>
    149 </blockquote>
    150 <h4 class="mansect"><a name="tag_20_108_11" id="tag_20_108_11"></a>STDERR</h4>
    151 <blockquote>
    152 <p>See the utility description for the specified <i>command</i>.</p>
    153 </blockquote>
    154 <h4 class="mansect"><a name="tag_20_108_12" id="tag_20_108_12"></a>OUTPUT FILES</h4>
    155 <blockquote>
    156 <p>See the utility description for the specified <i>command</i>.</p>
    157 </blockquote>
    158 <h4 class="mansect"><a name="tag_20_108_13" id="tag_20_108_13"></a>EXTENDED DESCRIPTION</h4>
    159 <blockquote>
    160 <p>The following pseudo-utilities shall be supported as <i>command</i> operands. All options referred to in the following list are
    161 values given in the <i>options</i> operands following <i>command</i>.</p>
    162 <dl compact>
    163 <dd></dd>
    164 <dt><b>check</b></dt>
    165 <dd>Equivalent to <b>info</b>, except that nothing shall be printed if nothing is being edited, and a non-zero exit status shall be
    166 returned if anything is being edited. The intent is to have this included in an &quot;install&quot; entry in a makefile to ensure that
    167 everything is included into the SCCS file before a version is installed.</dd>
    168 <dt><b>clean</b></dt>
    169 <dd>Remove everything from the current directory that can be recreated from SCCS files, but do not remove any files being edited.
    170 If the <b>-b</b> option is given, branches shall be ignored in the determination of whether they are being edited; this is
    171 dangerous if branches are kept in the same directory.</dd>
    172 <dt><b>create</b></dt>
    173 <dd>Create an SCCS file, taking the initial contents from the file of the same name. Any options to <a href=
    174 "../utilities/admin.html"><i>admin</i></a> are accepted. If the creation is successful, the original files shall be renamed by
    175 prefixing the basenames with a comma. These renamed files should be removed after it has been verified that the SCCS files have
    176 been created successfully.</dd>
    177 <dt><b>delget</b></dt>
    178 <dd>Perform a <a href="../utilities/delta.html"><i>delta</i></a> on the named files and then <a href=
    179 "../utilities/get.html"><i>get</i></a> new versions. The new versions shall have ID keywords expanded and shall not be editable.
    180 Any <b>-m</b>, <b>-p</b>, <b>-r</b>, <b>-s</b>, and <b>-y</b> options shall be passed to <a href=
    181 "../utilities/delta.html"><i>delta</i></a>, and any <b>-b</b>, <b>-c</b>, <b>-e</b>, <b>-i</b>, <b>-k</b>, <b>-l</b>, <b>-s</b>,
    182 and <b>-x</b> options shall be passed to <a href="../utilities/get.html"><i>get</i></a>.</dd>
    183 <dt><b>deledit</b></dt>
    184 <dd>Equivalent to <b>delget</b>, except that the <a href="../utilities/get.html"><i>get</i></a> phase shall include the <b>-e</b>
    185 option. This option is useful for making a checkpoint of the current editing phase. The same options shall be passed to <a href=
    186 "../utilities/delta.html"><i>delta</i></a> as described above, and all the options listed for <a href=
    187 "../utilities/get.html"><i>get</i></a> above except <b>-e</b> shall be passed to <b>edit</b>.</dd>
    188 <dt><b>diffs</b></dt>
    189 <dd>Write a difference listing between the current version of the files checked out for editing and the versions in SCCS format.
    190 Any <b>-r</b>, <b>-c</b>, <b>-i</b>, <b>-x</b>, and <b>-t</b> options shall be passed to <a href=
    191 "../utilities/get.html"><i>get</i></a>; any <b>-l</b>, <b>-s</b>, <b>-e</b>, <b>-f</b>, <b>-h</b>, and <b>-b</b> options shall be
    192 passed to <a href="../utilities/diff.html"><i>diff</i></a>. A <b>-C</b> option shall be passed to <a href=
    193 "../utilities/diff.html"><i>diff</i></a> as <b>-c</b>.</dd>
    194 <dt><b>edit</b></dt>
    195 <dd>Equivalent to <a href="../utilities/get.html"><i>get</i></a> <b>-e</b>.</dd>
    196 <dt><b>fix</b></dt>
    197 <dd>Remove the named delta, but leave a copy of the delta with the changes that were in it. It is useful for fixing small compiler
    198 bugs, and so on. The application shall ensure that it is followed by a <b>-r</b> <i>SID</i> option. Since <b>fix</b> does not leave
    199 audit trails, it should be used carefully.</dd>
    200 <dt><b>info</b></dt>
    201 <dd>Write a listing of all files being edited. If the <b>-b</b> option is given, branches (that is, SIDs with two or fewer
    202 components) shall be ignored. If a <b>-u</b> <i>user</i> option is given, then only files being edited by the named user shall be
    203 listed. A <b>-U</b> option shall be equivalent to <b>-u</b>&lt;<i>current&nbsp;user</i>&gt;.</dd>
    204 <dt><b>print</b></dt>
    205 <dd>Write out verbose information about the named files, equivalent to <i>sccs</i> <a href=
    206 "../utilities/prs.html"><i>prs</i></a>.</dd>
    207 <dt><b>tell</b></dt>
    208 <dd>Write a &lt;newline&gt;-separated list of the files being edited to standard output. Takes the <b>-b</b>, <b>-u</b>, and
    209 <b>-U</b> options like <b>info</b> and <b>check</b>.</dd>
    210 <dt><b>unedit</b></dt>
    211 <dd>This is the opposite of an <b>edit</b> or a <a href="../utilities/get.html"><i>get</i></a> <b>-e</b>. It should be used with
    212 caution, since any changes made since the <a href="../utilities/get.html"><i>get</i></a> are lost.</dd>
    213 </dl>
    214 <br></blockquote>
    215 <h4 class="mansect"><a name="tag_20_108_14" id="tag_20_108_14"></a>EXIT STATUS</h4>
    216 <blockquote>
    217 <p>The following exit values shall be returned:</p>
    218 <dl compact>
    219 <dd></dd>
    220 <dt>&nbsp;0</dt>
    221 <dd>Successful completion.</dd>
    222 <dt>&gt;0</dt>
    223 <dd>An error occurred.</dd>
    224 </dl>
    225 </blockquote>
    226 <h4 class="mansect"><a name="tag_20_108_15" id="tag_20_108_15"></a>CONSEQUENCES OF ERRORS</h4>
    227 <blockquote>
    228 <p>Default.</p>
    229 </blockquote>
    230 <hr>
    231 <div class="box"><em>The following sections are informative.</em></div>
    232 <h4 class="mansect"><a name="tag_20_108_16" id="tag_20_108_16"></a>APPLICATION USAGE</h4>
    233 <blockquote>
    234 <p>Many of the SCCS utilities take directory names as operands as well as specific filenames. The pseudo-utilities supported by
    235 <i>sccs</i> are not described as having this capability, but are not prohibited from doing so.</p>
    236 </blockquote>
    237 <h4 class="mansect"><a name="tag_20_108_17" id="tag_20_108_17"></a>EXAMPLES</h4>
    238 <blockquote>
    239 <ol>
    240 <li>
    241 <p>To get a file for editing, edit it and produce a new delta:</p>
    242 <pre>
    243 <tt>sccs get -e file.c
    244 ex file.c
    245 sccs delta file.c
    246 </tt></pre></li>
    247 <li>
    248 <p>To get a file from another directory:</p>
    249 <pre>
    250 <tt>sccs -p /usr/src/sccs/s. get cc.c
    251 </tt></pre>
    252 <p>or:</p>
    253 <pre>
    254 <tt>sccs get /usr/src/sccs/s.cc.c
    255 </tt></pre></li>
    256 <li>
    257 <p>To make a delta of a large number of files in the current directory:</p>
    258 <pre>
    259 <tt>sccs delta *.c
    260 </tt></pre></li>
    261 <li>
    262 <p>To get a list of files being edited that are not on branches:</p>
    263 <pre>
    264 <tt>sccs info -b
    265 </tt></pre></li>
    266 <li>
    267 <p>To delta everything being edited by the current user:</p>
    268 <pre>
    269 <tt>sccs delta $(sccs tell -U)
    270 </tt></pre></li>
    271 <li>
    272 <p>In a makefile, to get source files from an SCCS file if it does not already exist:</p>
    273 <pre>
    274 <tt>SRCS = &lt;</tt><i>list of source files</i><tt>&gt;
    275 $(SRCS):
    276     sccs get $(REL) $@
    277 </tt></pre></li>
    278 </ol>
    279 </blockquote>
    280 <h4 class="mansect"><a name="tag_20_108_18" id="tag_20_108_18"></a>RATIONALE</h4>
    281 <blockquote>
    282 <p><i>sccs</i> and its associated utilities are part of the XSI Development Utilities option within the XSI option.</p>
    283 <p>SCCS is an abbreviation for Source Code Control System. It is a maintenance and enhancement tracking tool. When a file is put
    284 under SCCS, the source code control system maintains the file and, when changes are made, identifies and stores them in the file
    285 with the original source code and/or documentation. As other changes are made, they too are identified and retained in the
    286 file.</p>
    287 <p>Retrieval of the original and any set of changes is possible. Any version of the file as it develops can be reconstructed for
    288 inspection or additional modification. History data can be stored with each version, documenting why the changes were made, who
    289 made them, and when they were made.</p>
    290 </blockquote>
    291 <h4 class="mansect"><a name="tag_20_108_19" id="tag_20_108_19"></a>FUTURE DIRECTIONS</h4>
    292 <blockquote>
    293 <p>None.</p>
    294 </blockquote>
    295 <h4 class="mansect"><a name="tag_20_108_20" id="tag_20_108_20"></a>SEE ALSO</h4>
    296 <blockquote>
    297 <p><a href="../utilities/admin.html#"><i>admin</i></a> , <a href="../utilities/delta.html#"><i>delta</i></a> , <a href=
    298 "../utilities/get.html#"><i>get</i></a> , <a href="../utilities/make.html#"><i>make</i></a> , <a href=
    299 "../utilities/prs.html#"><i>prs</i></a> , <a href="../utilities/rmdel.html#"><i>rmdel</i></a> , <a href=
    300 "../utilities/sact.html#"><i>sact</i></a> , <a href="../utilities/unget.html#"><i>unget</i></a> , <a href=
    301 "../utilities/val.html#"><i>val</i></a> , <a href="../utilities/what.html#"><i>what</i></a></p>
    302 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href=
    303 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p>
    304 </blockquote>
    305 <h4 class="mansect"><a name="tag_20_108_21" id="tag_20_108_21"></a>CHANGE HISTORY</h4>
    306 <blockquote>
    307 <p>First released in Issue 4.</p>
    308 </blockquote>
    309 <h4 class="mansect"><a name="tag_20_108_22" id="tag_20_108_22"></a>Issue 6</h4>
    310 <blockquote>
    311 <p>In the ENVIRONMENT VARIABLES section, the <i>PROJECTDIR</i> description is updated from &quot;otherwise, the home directory of a
    312 user of that name is examined&quot; to &quot;otherwise, the value of <i>PROJECTDIR</i> is treated as a user name and that user's initial
    313 working directory is examined&quot;.</p>
    314 <p>The normative text is reworded to avoid use of the term &quot;must&quot; for application requirements.</p>
    315 </blockquote>
    316 <h4 class="mansect"><a name="tag_20_108_23" id="tag_20_108_23"></a>Issue 7</h4>
    317 <blockquote>
    318 <p>SD5-XCU-ERN-97 is applied, updating the SYNOPSIS.</p>
    319 </blockquote>
    320 <h4 class="mansect"><a name="tag_20_108_24" id="tag_20_108_24"></a>Issue 8</h4>
    321 <blockquote>
    322 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p>
    323 </blockquote>
    324 <div class="box"><em>End of informative text.</em></div>
    325 <hr>
    326 <p>&nbsp;</p>
    327 <a href="#top"><span class="topOfPage">return to top of page</span></a><br>
    328 <hr size="2" noshade>
    329 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br>
    330 POSIX™ is a Trademark of The IEEE.<br>
    331 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br>
    332 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
    333 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a>
    334 ]</font></center>
    335 <hr size="2" noshade>
    336 <div class="NAVHEADER">
    337 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
    338 <tr class="nav">
    339 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/sact.html" accesskey="P">&lt;&lt;&lt;
    340 Previous</a></td>
    341 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
    342 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/sed.html" accesskey="N">Next &gt;&gt;&gt;</a></td>
    343 </tr>
    344 </table>
    345 <hr align="left" width="100%"></div>
    346 </body>
    347 </html>