class Minitar::PosixHeader

Implements the POSIX tar header as a Ruby class. The structure of the POSIX tar header is:

struct tarfile_entry_posix
{                      //                               pack   unpack
   char name[100];     // ASCII (+ Z unless filled)     a100   Z100
   char mode[8];       // 0 padded, octal, null         a8     A8
   char uid[8];        // 0 padded, octal, null         a8     A8
   char gid[8];        // 0 padded, octal, null         a8     A8
   char size[12];      // 0 padded, octal, null         a12    A12
   char mtime[12];     // 0 padded, octal, null         a12    A12
   char checksum[8];   // 0 padded, octal, null, space  a8     A8
   char typeflag[1];   // see below                     a      a
   char linkname[100]; // ASCII + (Z unless filled)     a100   Z100
   char magic[6];      // "ustar\0"                     a6     A6
   char version[2];    // "00"                          a2     A2
   char uname[32];     // ASCIIZ                        a32    Z32
   char gname[32];     // ASCIIZ                        a32    Z32
   char devmajor[8];   // 0 padded, octal, null         a8     A8
   char devminor[8];   // 0 padded, octal, null         a8     A8
   char prefix[155];   // ASCII (+ Z unless filled)     a155   Z155
};

The typeflag is one of several known values. POSIX indicates that β€œA POSIX-compliant implementation must treat any unrecognized typeflag value as a regular file.”