1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pub const TMAGIC: &'static [u8] = b"ustar\x00";
pub const TMAGLEN: usize = 6;
pub const TVERSION: &'static [u8] = b"00";
pub const TVERSLEN: usize = 2;
pub const REGTYPE:  ::int_t = '0' as ::int_t; 
pub const AREGTYPE: ::int_t = '\0' as ::int_t;
pub const LNKTYPE:  ::int_t = '1' as ::int_t; 
pub const SYMTYPE:  ::int_t = '2' as ::int_t; 
pub const CHRTYPE:  ::int_t = '3' as ::int_t; 
pub const BLKTYPE:  ::int_t = '4' as ::int_t; 
pub const DIRTYPE:  ::int_t = '5' as ::int_t; 
pub const FIFOTYPE: ::int_t = '6' as ::int_t; 
pub const CONTTYPE: ::int_t = '7' as ::int_t; 
pub const TSUID:   ::int_t = 0o4000;
pub const TSGID:   ::int_t = 0o2000;
pub const TSVTX:   ::int_t = 0o1000;
pub const TUREAD:  ::int_t = 0o0400;
pub const TUWRITE: ::int_t = 0o0200;
pub const TUEXEC:  ::int_t = 0o0100;
pub const TGREAD:  ::int_t = 0o0040;
pub const TGWRITE: ::int_t = 0o0020;
pub const TGEXEC:  ::int_t = 0o0010;
pub const TOREAD:  ::int_t = 0o0004;
pub const TOWRITE: ::int_t = 0o0002;
pub const TOEXEC:  ::int_t = 0o0001;