📄 tar.h.html
字号:
<!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-2003 The Open Group, All Rights Reserved --><title><tar.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="<tar.h>"></a> <a name="tag_13_73"></a><!-- <tar.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_73_01"></a>NAME</h4><blockquote>tar.h - extended tar definitions</blockquote><h4><a name="tag_13_73_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><tt>#include <tar.h></tt></p></blockquote><h4><a name="tag_13_73_03"></a>DESCRIPTION</h4><blockquote><p>The <i><tar.h></i> header shall define header block definitions as follows.</p><p>General definitions:</p><center><table border="1" cellpadding="3" align="center"><tr valign="top"><th align="center"><p class="tent"><b>Name</b></p></th><th align="center"><p class="tent"><b>Description</b></p></th><th align="center"><p class="tent"><b>Value</b></p></th></tr><tr valign="top"><td align="left"><p class="tent">TMAGIC</p></td><td align="center"><p class="tent">"ustar"</p></td><td align="left"><p class="tent">ustar plus null byte.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TMAGLEN</p></td><td align="center"><p class="tent">6</p></td><td align="left"><p class="tent">Length of the above.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TVERSION</p></td><td align="center"><p class="tent">"00"</p></td><td align="left"><p class="tent">00 without a null byte.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TVERSLEN</p></td><td align="center"><p class="tent">2</p></td><td align="left"><p class="tent">Length of the above.</p></td></tr></table></center><p><i>Typeflag</i> field definitions:</p><center><table border="1" cellpadding="3" align="center"><tr valign="top"><th align="center"><p class="tent"><b>Name</b></p></th><th align="center"><p class="tent"><b>Description</b></p></th><th align="center"><p class="tent"><b>Value</b></p></th></tr><tr valign="top"><td align="left"><p class="tent">REGTYPE</p></td><td align="center"><p class="tent">'0'</p></td><td align="left"><p class="tent">Regular file.</p></td></tr><tr valign="top"><td align="left"><p class="tent">AREGTYPE</p></td><td align="center"><p class="tent">'\0'</p></td><td align="left"><p class="tent">Regular file.</p></td></tr><tr valign="top"><td align="left"><p class="tent">LNKTYPE</p></td><td align="center"><p class="tent">'1'</p></td><td align="left"><p class="tent">Link.</p></td></tr><tr valign="top"><td align="left"><p class="tent">SYMTYPE</p></td><td align="center"><p class="tent">'2'</p></td><td align="left"><p class="tent">Symbolic link.</p></td></tr><tr valign="top"><td align="left"><p class="tent">CHRTYPE</p></td><td align="center"><p class="tent">'3'</p></td><td align="left"><p class="tent">Character special.</p></td></tr><tr valign="top"><td align="left"><p class="tent">BLKTYPE</p></td><td align="center"><p class="tent">'4'</p></td><td align="left"><p class="tent">Block special.</p></td></tr><tr valign="top"><td align="left"><p class="tent">DIRTYPE</p></td><td align="center"><p class="tent">'5'</p></td><td align="left"><p class="tent">Directory.</p></td></tr><tr valign="top"><td align="left"><p class="tent">FIFOTYPE</p></td><td align="center"><p class="tent">'6'</p></td><td align="left"><p class="tent">FIFO special.</p></td></tr><tr valign="top"><td align="left"><p class="tent">CONTTYPE</p></td><td align="center"><p class="tent">'7'</p></td><td align="left"><p class="tent">Reserved.</p></td></tr></table></center><p><i>Mode</i> field bit definitions (octal):</p><center><table border="1" cellpadding="3" align="center"><tr valign="top"><th align="center"><p class="tent"><b>Name</b></p></th><th align="center"><p class="tent"><b>Description</b></p></th><th align="center"><p class="tent"><b>Value</b></p></th></tr><tr valign="top"><td align="left"><p class="tent">TSUID</p></td><td align="center"><p class="tent">04000</p></td><td align="left"><p class="tent">Set UID on execution.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TSGID</p></td><td align="center"><p class="tent">02000</p></td><td align="left"><p class="tent">Set GID on execution.</p></td></tr><tr valign="top"><td align="left"><p class="tent"><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]"border="0"> TSVTX</p></td><td align="center"><p class="tent">01000</p></td><td align="left"><p class="tent">On directories, restricted deletion flag. <img src="../images/opt-end.gif" alt="[Option End]"border="0"></p></td></tr><tr valign="top"><td align="left"><p class="tent">TUREAD</p></td><td align="center"><p class="tent">00400</p></td><td align="left"><p class="tent">Read by owner.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TUWRITE</p></td><td align="center"><p class="tent">00200</p></td><td align="left"><p class="tent">Write by owner special.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TUEXEC</p></td><td align="center"><p class="tent">00100</p></td><td align="left"><p class="tent">Execute/search by owner.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TGREAD</p></td><td align="center"><p class="tent">00040</p></td><td align="left"><p class="tent">Read by group.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TGWRITE</p></td><td align="center"><p class="tent">00020</p></td><td align="left"><p class="tent">Write by group.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TGEXEC</p></td><td align="center"><p class="tent">00010</p></td><td align="left"><p class="tent">Execute/search by group.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TOREAD</p></td><td align="center"><p class="tent">00004</p></td><td align="left"><p class="tent">Read by other.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TOWRITE</p></td><td align="center"><p class="tent">00002</p></td><td align="left"><p class="tent">Write by other.</p></td></tr><tr valign="top"><td align="left"><p class="tent">TOEXEC</p></td><td align="center"><p class="tent">00001</p></td><td align="left"><p class="tent">Execute/search by other.</p></td></tr></table></center></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_73_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_73_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_73_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_73_07"></a>SEE ALSO</h4><blockquote><p>The Shell and Utilities volume of IEEE Std 1003.1-2001, <a href="../utilities/pax.html"><i>pax</i></a></p></blockquote><h4><a name="tag_13_73_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 3. Derived from the POSIX.1-1988 standard.</p></blockquote><h4><a name="tag_13_73_09"></a>Issue 6</h4><blockquote><p>The SEE ALSO section now refers to <a href="../utilities/pax.html"><i>pax</i></a> since the Shell and Utilities volume ofIEEE Std 1003.1-2001 no longer contains the <i>tar</i> utility.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -