1tar.h(3HEAD) Headers tar.h(3HEAD)
2
3
4
6 tar.h, tar - extended tar definitions
7
9 #include <tar.h>
10
11
13 The <tar.h> header defines header block definitions as follows.
14
15
16 General definitions:
17
18
19
20
21 Name Value Description
22 ──────────────────────────────────────────────────────────────
23 TMAGIC "ustar" ustar plus null byte
24 TMAGLEN 6 length of the above
25 TVERSION "00" 00 without a null byte
26 TVERSLEN 2 length of the above
27
28
29
30 Typeflag field definitions:
31
32
33
34
35 Name Value Description
36 ──────────────────────────────────────────────────────────────
37 REGTYPE '0' regular file
38 AREGTYPE '\0' regular file
39 LNKTYPE '1' link
40 SYMTYPE '2' symbolic link
41 CHRTYPE '3' character special
42 BLKTYPE '4' block special
43 DIRTYPE '5' directory
44 FIFOTYPE '6' FIFO special
45 CONTTYPE '7' reserved
46
47
48
49 Mode field bit definitions (octal):
50
51
52
53
54 Name Value Description
55 ────────────────────────────────────────────────────────────────────────────────
56 TSUID 04000 set UID on execution
57 TSGID 02000 set GID on execution
58 TSVTX 01000 on directories, restricted deletion flag
59 TUREAD 00400 read by owner
60 TUWRITE 00200 write by owner special
61 TUEXEC 00100 execute/search by owner
62 TGREAD 00040 read by group
63 TGWRITE 00020 write by group
64 TGEXEC 00010 execute/search by group
65 TOREAD 00004 read by other
66
67 TOWRITE 00002 write by other
68 TOEXEC 00001 execute/search by other
69
70
71
72 Types used in ancillary files:
73
74
75
76
77 Name Value Description
78 ACL_HDR 'A' Access Control List
79 LBL_TYPE 'L' Trusted Extensions file label
80 DIR_TYPE 'D' Trusted Extensions directory label
81
82
83
84 Attribute types used in Trusted Solaris ancillary files that are inter‐
85 preted by Trusted Extensions for backward compatibility:
86
87
88
89
90 Name Value Description
91 SLD_TYPE 'S' Single-level directory component
92 PATH_TYPE 'P' Path component
93 MLD_TYPE 'M' Multi-level directory component
94 FILE_TYPE 'F' Must handle files differently
95 APRIV_TYPE 'P' Allowed privileges data type in file
96 FPRIV_TYPE 'p' Forced privileges data type in file
97 COMP_TYPE 'C' Path components, use for MLD
98 ATTR_FLAG_TYPE 'F' File attribute flag bytes data type
99 LK_COMP_TYPE 'K' Link data path component
100
101
103 See attributes(5) for descriptions of the following attributes:
104
105
106
107
108 ┌─────────────────────────────┬─────────────────────────────┐
109 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
110 ├─────────────────────────────┼─────────────────────────────┤
111 │Interface Stability │See below. │
112 └─────────────────────────────┴─────────────────────────────┘
113
114
115 The general definitions, the typeflag field definitions, and the mode
116 field bit definitions are Standard. The types used in ancillary files
117 and the attribute types used in Trusted Solaris ancillary files are
118 Evolving.
119
121 pax(1), attributes(5), standards(5)
122
123
124
125SunOS 5.11 14 Mar 2006 tar.h(3HEAD)