17 #ifndef _RTEMS_UNTAR_H 18 #define _RTEMS_UNTAR_H 38 #define UNTAR_SUCCESSFUL 0 40 #define UNTAR_INVALID_CHECKSUM 2 41 #define UNTAR_INVALID_HEADER 3 43 #define UNTAR_GZ_INFLATE_FAILED 4 44 #define UNTAR_GZ_INFLATE_END_FAILED 5 46 int Untar_FromMemory(
void *tar_buf,
size_t size);
47 int Untar_FromMemory_Print(
void *tar_buf,
size_t size,
const rtems_printer* printer);
48 int Untar_FromFile(
const char *tar_name);
49 int Untar_FromFile_Print(
const char *tar_name,
const rtems_printer* printer);
170 int Untar_FromChunk_Print(
187 size_t inflateBufferSize
200 int Untar_FromGzChunk_Print(
221 size_t inflateBufferSize
234 int Untar_FromXzChunk_Print(
246 _rtems_octal2ulong(
const char *octascii,
size_t len);
254 _rtems_tar_header_checksum(
const char *bufr);
size_t done_bytes
Number of bytes of overall length are already processed.
Definition: untar.h:75
size_t inflateBufferSize
Size of buffer that contains the inflated data.
Definition: untar.h:145
size_t inflateBufferSize
Size of buffer that contains the inflated data.
Definition: untar.h:117
Untar_ChunkContext base
Instance of Chunk Context needed for tar decompression.
Definition: untar.h:125
Definition: xz_dec_stream.c:26
unsigned long todo_bytes
Overall amount of bytes to be processed.
Definition: untar.h:85
int out_fd
File descriptor of output file.
Definition: untar.h:95
void * inflateBuffer
Buffer that contains the inflated data.
Definition: untar.h:112
unsigned long mode
Mode of the file.
Definition: untar.h:80
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:15
struct xz_dec * strm
Xz context.
Definition: untar.h:130
int Untar_GzChunkContext_Init(Untar_GzChunkContext *ctx, void *inflateBuffer, size_t inflateBufferSize)
Initializes the Untar_ChunkGzContext.
Definition: untar_tgz.c:23
User print interface to the bspIO print plug in.
unsigned context
Definition: tlb.h:108
Untar_ChunkContext base
Instance of Chunk Context needed for tar decompression.
Definition: untar.h:102
unsigned size
Definition: tte.h:74
z_stream strm
Current zlib context.
Definition: untar.h:107
void * inflateBuffer
Buffer that contains the inflated data.
Definition: untar.h:140
unsigned long todo_blocks
Overall amount of blocks to be processed.
Definition: untar.h:90
void Untar_ChunkContext_Init(Untar_ChunkContext *context)
Initializes the Untar_ChunkContext files out of a part of a block of memory.
Definition: untar.c:554