57#define UNTAR_SUCCESSFUL 0
59#define UNTAR_INVALID_CHECKSUM 2
60#define UNTAR_INVALID_HEADER 3
62#define UNTAR_GZ_INFLATE_FAILED 4
63#define UNTAR_GZ_INFLATE_END_FAILED 5
65int Untar_FromMemory(
void *tar_buf,
size_t size);
66int Untar_FromMemory_Print(
void *tar_buf,
size_t size,
const rtems_printer* printer);
67int Untar_FromFile(
const char *tar_name);
68int Untar_FromFile_Print(
const char *tar_name,
const rtems_printer* printer);
70#define UNTAR_FILE_NAME_SIZE 100
75 char link_name[UNTAR_FILE_NAME_SIZE];
77 unsigned long file_size;
78 unsigned long nblocks;
79 unsigned char linkflag;
89 char buf[UNTAR_FILE_NAME_SIZE];
189int Untar_FromChunk_Print(
206 size_t inflateBufferSize
219int Untar_FromGzChunk_Print(
240 size_t inflateBufferSize
253int Untar_FromXzChunk_Print(
int Untar_XzChunkContext_Init(Untar_XzChunkContext *ctx, enum xz_mode mode, uint32_t dict_max, void *inflateBuffer, size_t inflateBufferSize)
Initializes the Untar_ChunkXzContext.
Definition: untar_txz.c:34
int Untar_GzChunkContext_Init(Untar_GzChunkContext *ctx, void *inflateBuffer, size_t inflateBufferSize)
Initializes the Untar_ChunkGzContext.
Definition: untar_tgz.c:36
void Untar_ChunkContext_Init(Untar_ChunkContext *context)
Initializes the Untar_ChunkContext files out of a part of a block of memory.
Definition: untar.c:497
User print interface to the bspIO print plug in.
rtems_termios_device_context * context
Definition: console-config.c:62
int out_fd
File descriptor of output file.
Definition: untar.h:114
size_t done_bytes
Number of bytes of overall length are already processed.
Definition: untar.h:109
void * inflateBuffer
Buffer that contains the inflated data.
Definition: untar.h:131
Untar_ChunkContext base
Instance of Chunk Context needed for tar decompression.
Definition: untar.h:121
size_t inflateBufferSize
Size of buffer that contains the inflated data.
Definition: untar.h:136
z_stream strm
Current zlib context.
Definition: untar.h:126
Untar_ChunkContext base
Instance of Chunk Context needed for tar decompression.
Definition: untar.h:144
struct xz_dec * strm
Xz context.
Definition: untar.h:149
size_t inflateBufferSize
Size of buffer that contains the inflated data.
Definition: untar.h:164
void * inflateBuffer
Buffer that contains the inflated data.
Definition: untar.h:159
Definition: xz_dec_stream.c:26