1tar.h(0P) POSIX Programmer's Manual tar.h(0P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 tar.h — extended tar definitions
13
15 #include <tar.h>
16
18 The <tar.h> header shall define the following symbolic constants with
19 the indicated values.
20
21 General definitions:
22
23 ┌───────────┬────────────┬────────────────────────────────────────┐
24 │ Name │ Value │ Description │
25 ├───────────┼────────────┼────────────────────────────────────────┤
26 │TMAGIC │ "ustar" │ Used in the magic field in the ustar │
27 │ │ │ header block, including the trailing │
28 │ │ │ null byte. │
29 │TMAGLEN │ 6 │ Length in octets of the magic field. │
30 │TVERSION │ "00" │ Used in the version field in the ustar │
31 │ │ │ header block, excluding the trailing │
32 │ │ │ null byte. │
33 │TVERSLEN │ 2 │ Length in octets of the version field. │
34 └───────────┴────────────┴────────────────────────────────────────┘
35 Typeflag field definitions:
36
37 ┌───────────┬────────────┬────────────────────────────────┐
38 │ Name │ Value │ Description │
39 ├───────────┼────────────┼────────────────────────────────┤
40 │REGTYPE │ '0' │ Regular file. │
41 │AREGTYPE │ '\0' │ Regular file. │
42 │LNKTYPE │ '1' │ Link. │
43 │SYMTYPE │ '2' │ Symbolic link. │
44 │CHRTYPE │ '3' │ Character special. │
45 │BLKTYPE │ '4' │ Block special. │
46 │DIRTYPE │ '5' │ Directory. │
47 │FIFOTYPE │ '6' │ FIFO special. │
48 │CONTTYPE │ '7' │ Reserved. │
49 └───────────┴────────────┴────────────────────────────────┘
50 Mode field bit definitions (octal):
51
52 ┌───────────┬────────────┬──────────────────────────────────────────────┐
53 │ Name │ Value │ Description │
54 ├───────────┼────────────┼──────────────────────────────────────────────┤
55 │TSUID │ 04000 │ Set UID on execution. │
56 │TSGID │ 02000 │ Set GID on execution. │
57 │TSVTX │ 01000 │ On directories, restricted deletion flag. │
58 │TUREAD │ 00400 │ Read by owner. │
59 │TUWRITE │ 00200 │ Write by owner special. │
60 │TUEXEC │ 00100 │ Execute/search by owner. │
61 │TGREAD │ 00040 │ Read by group. │
62 │TGWRITE │ 00020 │ Write by group. │
63 │TGEXEC │ 00010 │ Execute/search by group. │
64 │TOREAD │ 00004 │ Read by other. │
65 │TOWRITE │ 00002 │ Write by other. │
66 │TOEXEC │ 00001 │ Execute/search by other. │
67 └───────────┴────────────┴──────────────────────────────────────────────┘
68 The following sections are informative.
69
71 None.
72
74 None.
75
77 None.
78
80 The Shell and Utilities volume of POSIX.1‐2017, pax
81
83 Portions of this text are reprinted and reproduced in electronic form
84 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
85 table Operating System Interface (POSIX), The Open Group Base Specifi‐
86 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
87 Electrical and Electronics Engineers, Inc and The Open Group. In the
88 event of any discrepancy between this version and the original IEEE and
89 The Open Group Standard, the original IEEE and The Open Group Standard
90 is the referee document. The original Standard can be obtained online
91 at http://www.opengroup.org/unix/online.html .
92
93 Any typographical or formatting errors that appear in this page are
94 most likely to have been introduced during the conversion of the source
95 files to man page format. To report such errors, see https://www.ker‐
96 nel.org/doc/man-pages/reporting_bugs.html .
97
98
99
100IEEE/The Open Group 2017 tar.h(0P)