📄 get.html
字号:
These files are known generically as the<i>g-file</i>,<i>l-file</i>,<i>p-file</i>and<i>z-file</i>.The letter before the hyphen is called the<i>tag .</i>An auxiliary filename is formed from the SCCS file name:the last component ofall SCCS filenames must be of the forms.<i>module-name</i>the auxiliary files are named by replacing the leadingswith the tag.The<i>g-file</i>is an exception to this scheme:the<i>g-file</i>is named by removing thes.prefix.For example, for<b>s.xyz.c</b>,the auxiliary filenames would be<b>xyz.c</b>,<b>l.xyz.c</b>,<b>p.xyz.c</b>and<b>z.xyz.c</b>,respectively.<p>The<i>g-file</i>,which contains the generated text,is created in the current directory (unless the<b>-p</b>option is used).A<i>g-file</i>is created in all cases, whether or not any lines of textwere generated by the<i>get</i>.It is owned by the real user.If the<b>-k</b>option is used or implied, it is writable by theowner only (read-only for everyone else);otherwise it is read-only.Only the real user need havewrite permission in the current directory.<p>The<i>l-file</i>contains a table showing which deltas were appliedin generating the retrieved text.The<i>l-file</i>is created in the current directory if the<b>-l</b>option is used;it is read-only and it is owned by the real user.Only the real user need have write permission in thecurrent directory.<p>Lines in the<i>l-file</i>have the following format:<code><p><tt>"%c%c%c<img src="../images/delta.gif" border=0>%s\t%s<img src="../images/delta.gif" border=0>%s\n"</tt>, <<i>code1</i>>,<<i>code2</i>>,<<i>code3</i>>,<<i>SID</i>>,<<i>date-time</i>>,<<i>login</i>></code></p><p>where the entries are:<dl compact><dt><<i>code1</i>><dd>A space character if the delta was applied;"*" otherwise.<dt><<i>code2</i>><dd>A space character if the delta was applied or was not applied and ignored;"*" if the delta was not applied and was not ignored.<dt><<i>code3</i>><dd>A character indicating a special reasonwhy the deltawas or was not applied:<dl compact><dt><b>I</b><dd>Included.<dt><b>X</b><dd>Excluded.<dt><b>C</b><dd>Cut off (by a<b>-c</b>option).</dl><p><dt><<i>date-time</i>><dd>Date and time (using the<i><a href="date.html">date</a></i>utility's%y/%m/%d%Tformat)of creation.<p><dt><<i>login</i>><dd>Login name of person who created<i><a href="delta.html">delta</a></i>.<p></dl><p>The comments and MR data follow on subsequent lines,indented one tab character.A blank line terminates each entry.<p>The<i>p-file</i>is used to pass information resulting from a<i>get</i>with a<b>-e</b>option along to<i><a href="delta.html">delta</a></i>.Its contents are also used to prevent a subsequent execution of<i>get</i>with a<b>-e</b>option for the same SID until<i><a href="delta.html">delta</a></i>is executed or the joint edit flag,j,is set in the SCCS file.The<i>p-file</i>is created in the directory containing the SCCS fileand the effective user must have write permission in that directory.It is writable by owner only, and it is owned by the effective user.Each line in the<i>p-file</i>has the following format:<code><p><tt>"%s<img src="../images/delta.gif" border=0>%s<img src="../images/delta.gif" border=0>%s<img src="../images/delta.gif" border=0>%s%s%s\n"</tt>, <<i>g-file SID</i>>,<<i>SID of new delta</i>>,<<i>login-name of real user</i>>,<<i>date-time</i>>,<<i>i-value</i>>,<<i>x-value</i>></p></code><p>where<<i>i-value</i>>uses the format "" if no <b>-i</b> optionwas specified and uses the format:<code><p><tt>"<img src="../images/delta.gif" border=0>-i%s"</tt>, <<i>i option option-argument</i>></p></code>if a <b>-i</b> option was specified, and <<i>x-value</i>>uses the format "" if no <b>-x</b> option was specified,and uses the format:<code><p><tt>"<img src="../images/delta.gif" border=0>-x%s"</tt>, <<i>x option option-argument</i>></p></code>if a <b>-x</b> option was specified. There can be an arbitrary number of lines in the<i>p-file</i>at any time; no two lines can have the same new delta SID.<p>The<i>z-file</i>serves as a lock-out mechanism against simultaneous updates.Its contents are the binary process ID of thecommand (that is,<i>get</i>)that created it.The<i>z-file</i>is created in the directory containing the SCCS file for the duration of<i>get</i>.The same protection restrictions as those for the<i>p-file</i>apply for the<i>z-file</i>.The<i>z-file</i>is created read-only.<br></blockquote><h4><a name = "tag_001_014_845"> </a>EXTENDED DESCRIPTION</h4><blockquote><pre><table bordercolor=#000000 border=1 align=center><tr valign=top><th colspan=5 align=center><b>Determination of SCCS Identification String</b><tr valign=top><th align=center><b>SID*</b><th align=center><b>-b Keyletter</b><th align=center><b>Other</b><th align=center><b>SID</b><th align=center><b>SID of Delta</b><tr valign=top><th align=center><b>Specified</b><th align=center><b>Used</b><th align=center><b>Conditions</b><th align=center><b>Retrieved</b><th align=center><b>to be Created</b><tr valign=top><td align=left>none<td align=center>no<td align=center>R defaults to mR<td align=left>mR.mL<td align=left>mR.(mL+1)<tr valign=top><td align=left>none<td align=center>yes<td align=center>R defaults to mR<td align=left>mR.mL<td align=left>mR.mL.(mB+1).1<tr valign=top><td align=left>R<td align=center>no<td align=center>R > mR<td align=left>mR.mL<td align=left>R.1***<tr valign=top><td align=left>R<td align=center>no<td align=center>R = mR<td align=left>mR.mL<td align=left>mR.(mL+1)<tr valign=top><td align=left>R<td align=center>yes<td align=center>R > mR<td align=left>mR.mL<td align=left>mR.mL.(mB+1).1<tr valign=top><td align=left>R<td align=center>yes<td align=center>R = mR<td align=left>mR.mL<td align=left>mR.mL.(mB+1).1<tr valign=top><td align=left>R<td align=center>-<td align=center> R < mR and R does not exist <td align=left>hR.mL**<td align=left>hR.mL.(mB+1).1<tr valign=top><td align=left>R<td align=center>-<td align=center> Trunk successor in release > R and R exists <td align=left>R.mL<td align=left>R.mL.(mB+1).1<tr valign=top><td align=left>R.L<td align=center>no<td align=center>No trunk successor<td align=left>R.L<td align=left>R.(L+1)<tr valign=top><td align=left>R.L<td align=center>yes<td align=center>No trunk successor<td align=left>R.L<td align=left>R.L.(mB+1).1<tr valign=top><td align=left>R.L<td align=center>-<td align=center> Trunk successor in release >= R <td align=left>R.L<td align=left>R.L.(mB+1).1<tr valign=top><td align=left>R.L.B<td align=center>no<td align=center>No branch successor<td align=left>R.L.B.mS<td align=left>R.L.B.(mS+1)<tr valign=top><td align=left>R.L.B<td align=center>yes<td align=center>No branch successor<td align=left>R.L.B.mS<td align=left>R.L.(mB+1).1<tr valign=top><td align=left>R.L.B.S<td align=center>no<td align=center>No branch successor<td align=left>R.L.B.S<td align=left>R.L.B.(S+1)<tr valign=top><td align=left>R.L.B.S<td align=center>yes<td align=center>No branch successor<td align=left>R.L.B.S<td align=left>R.L.(mB+1).1<tr valign=top><td align=left>R.L.B.S<td align=center>-<td align=center>Branch successor<td align=left>R.L.B.S<td align=left>R.L.(mB+1).1</table></pre><dl compact><dt>*<dd>R, L, B and S are the release, level,branch and sequence components of the SID, respectively;m means maximum.Thus, for example,R.mL means "the maximum level number within release R";R.L.(mB+1).1 means "the first sequence number on thenew branch (that is, maximum branch number plusone) of level L within release R".Note that if the SID specified is of the form R.L,R.L.B or R.L.B.S, each of the specified components must exist.<dt>**<dd>hR is the highest existing release that is lower thanthe specified, non-existent, release R.<dt>***<dd>This is used to force creation of the firstdelta in a new release.<dt><dd>The<b>-b</b>option is effective only if thebflag is present in the file.An entry of - means "irrelevant".<dt><dd>This case applies if thed(default SID) flag is not present in the file.If thedflag is present in the file, then theSID obtained from thedflag is interpreted as if it had been specified on the command line.Thus, one of the other cases in this table applies.</dl><h5><a name = "tag_001_014_845_001"> </a>Identification Keywords</h5>Identifying information is inserted into the text retrieved from theSCCS file by replacing identification keywords with their valuewherever they occur.The following keywords may be used in the text stored in an SCCS file:<dl compact><dt><b>%M%</b><dd>Module name: either the value of themflag in the file, or if absent,the name of the SCCS file with the leadings.removed.<dt><b>%I%</b><dd>SCCS identification (SID)(<i>%R%.%L%</i>or<i>%R%.%L%.%B%.%S%</i>)of the retrieved text<dt><b>%R%</b><dd>Release.<dt><b>%L%</b><dd>Level.<dt><b>%B%</b><dd>Branch.<dt><b>%S%</b><dd>Sequence.<dt><b>%D%</b><dd>Current date (<i>YY</i>/<i>MM</i>/<i>DD</i>).<dt><b>%H%</b><dd>Current date (<i>MM</i>/<i>DD</i>/<i>YY</i>).<dt><b>%T%</b><dd>Current time (<i>HH</i>:<i>MM</i>:<i>SS</i>).<dt><b>%E%</b><dd>Date newest applied delta was created (<i>YY</i>/<i>MM</i>/<i>DD</i>).<dt><b>%G%</b><dd>Date newest applied delta was created (<i>MM</i>/<i>DD</i>/<i>YY</i>).<dt><b>%U%</b><dd>Time newest applied delta was created (<i>HH</i>:<i>MM</i>:<i>SS</i>).<dt><b>%Y%</b><dd>Module type: value of thetflag in the SCCS file.<dt><b>%F%</b><dd>SCCS filename.<dt><b>%P%</b><dd>SCCS absolute pathname.<dt><b>%Q%</b><dd>The value of theqflag in the file.<dt><b>%C%</b><dd>Current line number.This keyword is intended for identifying messages output by theprogram, such as "this should not have happened" type errors.It is not intended to be used on every line to providesequence numbers.<dt><b>%Z%</b><dd>The four-character string@(#)recognisable by<i><a href="what.html">what</a></i>.<dt><b>%W%</b><dd>A shorthand notation for constructing<i><a href="what.html">what</a></i>strings:<pre><code>%W%=%Z%%M%<tab>%I%</code></pre><dt><b>%A%</b><dd>Another shorthand notation for constructing<i><a href="what.html">what</a></i>strings:<pre><code>%A%=%Z%%Y%%M%%I%%Z%</code></pre></dl></blockquote><h4><a name = "tag_001_014_846"> </a>EXIT STATUS</h4><blockquote>The following exit values are returned:<dl compact><dt>0<dd>Successful completion.<dt>>0<dd>An error occurred.</dl></blockquote><h4><a name = "tag_001_014_847"> </a>CONSEQUENCES OF ERRORS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_848"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_849"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_850"> </a>FUTURE DIRECTIONS</h4><blockquote>The<b>-lp</b>option may be withdrawn in a future issue.</blockquote><h4><a name = "tag_001_014_851"> </a>SEE ALSO</h4><blockquote><i><a href="admin.html">admin</a></i>,<i><a href="delta.html">delta</a></i>,<i><a href="prs.html">prs</a></i>,<i><a href="what.html">what</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 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 + -