1<tar.h>(0P) POSIX Programmer's Manual <tar.h>(0P)
2
3
4
6 tar.h - extended tar definitions
7
9 #include <tar.h>
10
12 The <tar.h> header shall define header block definitions as follows.
13
14 General definitions:
15
16 Name Description Value
17 TMAGIC "ustar" ustar plus null byte.
18 TMAGLEN 6 Length of the above.
19 TVERSION "00" 00 without a null byte.
20 TVERSLEN 2 Length of the above.
21
22 Typeflag field definitions:
23
24 Name Description Value
25 REGTYPE '0' Regular file.
26 AREGTYPE '\0' Regular file.
27 LNKTYPE '1' Link.
28 SYMTYPE '2' Symbolic link.
29 CHRTYPE '3' Character special.
30 BLKTYPE '4' Block special.
31 DIRTYPE '5' Directory.
32 FIFOTYPE '6' FIFO special.
33 CONTTYPE '7' Reserved.
34
35 Mode field bit definitions (octal):
36
37 Name Description Value
38 TSUID 04000 Set UID on execution.
39 TSGID 02000 Set GID on execution.
40 TSVTX 01000 On directories, restricted deletion flag.
41 TUREAD 00400 Read by owner.
42 TUWRITE 00200 Write by owner special.
43 TUEXEC 00100 Execute/search by owner.
44 TGREAD 00040 Read by group.
45 TGWRITE 00020 Write by group.
46 TGEXEC 00010 Execute/search by group.
47 TOREAD 00004 Read by other.
48 TOWRITE 00002 Write by other.
49 TOEXEC 00001 Execute/search by other.
50
51 The following sections are informative.
52
54 None.
55
57 None.
58
60 None.
61
63 The Shell and Utilities volume of IEEE Std 1003.1-2001, pax
64
66 Portions of this text are reprinted and reproduced in electronic form
67 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
68 -- Portable Operating System Interface (POSIX), The Open Group Base
69 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
70 Electrical and Electronics Engineers, Inc and The Open Group. In the
71 event of any discrepancy between this version and the original IEEE and
72 The Open Group Standard, the original IEEE and The Open Group Standard
73 is the referee document. The original Standard can be obtained online
74 at http://www.opengroup.org/unix/online.html .
75
76
77
78IEEE/The Open Group 2003 <tar.h>(0P)