blob: be589842a8f756e1258e28d7fa726afc4a1f549e [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#ifndef _TAR_H
2#define _TAR_H
3
4#define TSUID 04000
5#define TSGID 02000
6#define TSVTX 01000
7#define TUREAD 00400
8#define TUWRITE 00200
9#define TUEXEC 00100
10#define TGREAD 00040
11#define TGWRITE 00020
12#define TGEXEC 00010
13#define TOREAD 00004
14#define TOWRITE 00002
15#define TOEXEC 00001
16
17#define REGTYPE '0'
18#define AREGTYPE '\0'
19#define LNKTYPE '1'
20#define SYMTYPE '2'
21#define CHRTYPE '3'
22#define BLKTYPE '4'
23#define DIRTYPE '5'
24#define FIFOTYPE '6'
25#define CONTTYPE '7'
26
27#define TMAGIC "ustar"
28#define TMAGLEN 6
29
30#define TVERSION "00"
31#define TVERSLEN 2
32
33#endif