tar_header::tar_header | ( | ) |
void tar_header::set_empty | ( | ) |
bool tar_header::IsDirectory | ( | ) | const |
References AREGTYPE, DIRTYPE, name, and typeflag.
Referenced by TAR::tar_extract_file().
bool tar_header::IsRegFile | ( | ) | const |
References CONTTYPE, REGTYPE, and typeflag.
Referenced by TAR::tar_extract_file(), and tar_get_next_file().
bool tar_header::IsLongName | ( | ) | const |
References GNU_LONGNAME_TYPE, and typeflag.
Referenced by TAR::th_read().
bool tar_header::IsLongLink | ( | ) | const |
References GNU_LONGLINK_TYPE, and typeflag.
Referenced by TAR::th_read().
int tar_header::GetSize | ( | ) | const |
References size.
Referenced by TAR::tar_extract_regfile(), TAR::tar_extract_regfile_to_buffer(), TAR::tar_skip_regfile(), TAR::th_print_long_ls(), and TAR::th_read().
string tar_header::th_get_pathname | ( | ) | const |
References Format(), gnu_longname, name, and prefix.
Referenced by tar_get_next_file(), and TAR::th_print_long_ls().
char tar_header::name[100] |
Referenced by IsDirectory(), th_get_pathname(), and TAR::th_read_internal().
char tar_header::mode[8] |
char tar_header::uid[8] |
char tar_header::gid[8] |
char tar_header::size[12] |
Referenced by GetSize().
char tar_header::mtime[12] |
char tar_header::chksum[8] |
char tar_header::typeflag |
Referenced by IsDirectory(), IsLongLink(), IsLongName(), and IsRegFile().
char tar_header::linkname[100] |
char tar_header::magic[6] |
char tar_header::version[2] |
char tar_header::uname[32] |
char tar_header::gname[32] |
char tar_header::devmajor[8] |
char tar_header::devminor[8] |
char tar_header::prefix[155] |
Referenced by th_get_pathname().
char tar_header::padding[12] |
char* tar_header::gnu_longname |
Referenced by th_get_pathname(), and TAR::th_read().
char* tar_header::gnu_longlink |
Referenced by TAR::th_read().