ddc
Classes | Macros | Functions | Variables
RmlTar.cpp File Reference
#include "../CommonLib/util_classes.h"
#include "tar.h"
#include <stdio.h>
#include <string.h>
Include dependency graph for RmlTar.cpp:

Classes

struct  tar_header
 
struct  TAR
 

Macros

#define BIT_ISSET(bitmask, bit)   ((bitmask) & (bit))
 

Functions

bool mkdirhier (const char *path)
 
int tar_open (TAR **t, const char *pathname)
 
int tar_close (TAR *t)
 
bool tar_get_next_file (TAR *t, string &FileName, vector< char > &Result)
 

Variables

const char GNU_LONGNAME_TYPE = 'L'
 
const char GNU_LONGLINK_TYPE = 'K'
 
const size_t T_BLOCKSIZE = 512
 

Macro Definition Documentation

◆ BIT_ISSET

#define BIT_ISSET (   bitmask,
  bit 
)    ((bitmask) & (bit))

Function Documentation

◆ mkdirhier()

bool mkdirhier ( const char *  path)

References MakeDir(), and StringTokenizer::val().

Referenced by TAR::tar_extract_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tar_open()

int tar_open ( TAR **  t,
const char *  pathname 
)

References TAR::pathname.

Referenced by CDocumentIterator::CDocumentIterator().

Here is the caller graph for this function:

◆ tar_close()

int tar_close ( TAR t)

References TAR::m_pFile.

Referenced by CDocumentIterator::NextDocument().

Here is the caller graph for this function:

◆ tar_get_next_file()

bool tar_get_next_file ( TAR t,
string &  FileName,
vector< char > &  Result 
)

References Format(), tar_header::IsRegFile(), TAR::pathname, TAR::tar_extract_regfile_to_buffer(), TAR::th_buf, tar_header::th_get_pathname(), and TAR::th_read().

Referenced by CDocumentIterator::NextDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ GNU_LONGNAME_TYPE

const char GNU_LONGNAME_TYPE = 'L'

Referenced by tar_header::IsLongName().

◆ GNU_LONGLINK_TYPE

const char GNU_LONGLINK_TYPE = 'K'

Referenced by tar_header::IsLongLink().

◆ T_BLOCKSIZE

const size_t T_BLOCKSIZE = 512