1tar.h(0P)                  POSIX Programmer's Manual                 tar.h(0P)
2
3
4

PROLOG

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
11

NAME

13       tar.h — extended tar definitions
14

SYNOPSIS

16       #include <tar.h>
17

DESCRIPTION

19       The <tar.h> header shall define the following symbolic  constants  with
20       the indicated values.
21
22       General definitions:
23
24    ┌────────────────┬─────────────────┬──────────────────────────────────────────┐
25Name       Value      Description                
26    ├────────────────┼─────────────────┼──────────────────────────────────────────┤
27    │TMAGIC          │     "ustar"     │ ustar plus null byte.                    │
28    │TMAGLEN         │        6        │ Length of the above.                     │
29    │TVERSION        │      "00"       │ 00 without a null byte.                  │
30    │TVERSLEN        │        2        │ Length of the above.                     │
31    └────────────────┴─────────────────┴──────────────────────────────────────────┘
32       Typeflag field definitions:
33
34    ┌────────────────┬─────────────────┬──────────────────────────────────────────┐
35Name       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       Mode field bit definitions (octal):
48
49  ┌────────────────┬─────────────────┬──────────────────────────────────────────────┐
50Name       Value      Description                  
51  ├────────────────┼─────────────────┼──────────────────────────────────────────────┤
52  │TSUID           │      04000      │ Set UID on execution.                        │
53  │TSGID           │      02000      │ Set GID on execution.                        │
54  │TSVTX           │      01000      │ On directories, restricted deletion flag.    │
55  │TUREAD          │      00400      │ Read by owner.                               │
56  │TUWRITE         │      00200      │ Write by owner special.                      │
57  │TUEXEC          │      00100      │ Execute/search by owner.                     │
58  │TGREAD          │      00040      │ Read by group.                               │
59  │TGWRITE         │      00020      │ Write by group.                              │
60  │TGEXEC          │      00010      │ Execute/search by group.                     │
61  │TOREAD          │      00004      │ Read by other.                               │
62  │TOWRITE         │      00002      │ Write by other.                              │
63  │TOEXEC          │      00001      │ Execute/search by other.                     │
64  └────────────────┴─────────────────┴──────────────────────────────────────────────┘
65       The following sections are informative.
66

APPLICATION USAGE

68       None.
69

RATIONALE

71       None.
72

FUTURE DIRECTIONS

74       None.
75

SEE ALSO

77       The Shell and Utilities volume of POSIX.1‐2008, pax
78
80       Portions  of  this text are reprinted and reproduced in electronic form
81       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
82       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
83       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
84       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
85       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
86       event of any discrepancy between this version and the original IEEE and
87       The Open Group Standard, the original IEEE and The Open Group  Standard
88       is  the  referee document. The original Standard can be obtained online
89       at http://www.unix.org/online.html .
90
91       Any typographical or formatting errors that appear  in  this  page  are
92       most likely to have been introduced during the conversion of the source
93       files to man page format. To report such errors,  see  https://www.ker
94       nel.org/doc/man-pages/reporting_bugs.html .
95
96
97
98IEEE/The Open Group                  2013                            tar.h(0P)
Impressum