Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "zlib.h"
Go to the source code of this file.
Classes | |
struct | file |
Macros | |
#define | local static |
#define | LGCHUNK 14 |
#define | CHUNK (1U << LGCHUNK) |
#define | DSIZE 32768U |
#define | read1(in) |
Functions | |
void | bye (char *msg1, char *msg2) |
unsigned | gcd (unsigned a, unsigned b) |
void | rotate (unsigned char *list, unsigned len, unsigned rot) |
int | readin (file *in) |
int | readmore (file *in) |
void | skip (file *in, unsigned n) |
unsigned long | read4 (file *in) |
void | gzheader (file *in) |
int | gzscan (char *name, z_stream *strm, int level) |
void | gztack (char *name, int gd, z_stream *strm, int last) |
int | main (int argc, char **argv) |
#define CHUNK (1U << LGCHUNK) |
Definition at line 89 of file gzappend.c.
#define DSIZE 32768U |
Definition at line 90 of file gzappend.c.
#define LGCHUNK 14 |
Definition at line 88 of file gzappend.c.
#define local static |
Definition at line 87 of file gzappend.c.
#define read1 | ( | in | ) |
Definition at line 198 of file gzappend.c.
void bye | ( | char * | msg1, |
char * | msg2 | ||
) |
Definition at line 93 of file gzappend.c.
References test-lz4-list::exit.
Referenced by gzheader(), gzscan(), gztack(), main(), readin(), readmore(), sh_assembler(), and skip().
void gzheader | ( | file * | in | ) |
Definition at line 235 of file gzappend.c.
References bye(), flags, in, n, read1, skip(), and unsigned.
Referenced by gzscan().
Definition at line 259 of file gzappend.c.
References lzma_stream::avail_in, lzma_stream::avail_out, file::buf, bye(), CHUNK, crc32(), deflateInit2, deflatePrime(), deflateSetDictionary(), DSIZE, test_evm::end, file::fd, free(), gzheader(), inflate(), inflateEnd(), inflateInit2, L, file::left, level, LGCHUNK, lseek, malloc(), name, file::name, file::next, lzma_stream::next_in, lzma_stream::next_out, NULL, O_RDWR, read(), read4(), readin(), readmore(), rotate(), SEEK_CUR, SEEK_SET, file::size, strm, tot, lzma_stream::total_in, lzma_stream::total_out, write, Z_BLOCK, Z_DATA_ERROR, Z_DEFAULT_STRATEGY, Z_DEFLATED, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_END, and Z_STREAM_ERROR.
Referenced by main().
Definition at line 388 of file gzappend.c.
References lzma_stream::avail_in, lzma_stream::avail_out, bye(), CHUNK, close, crc32(), deflate(), deflateEnd(), fd, free(), in, len, malloc(), lzma_stream::next_in, lzma_stream::next_out, NULL, O_RDONLY, out, read(), strm, lzma_stream::total_in, unsigned, write, Z_FINISH, Z_NO_FLUSH, and Z_STREAM_END.
Referenced by main().
Definition at line 466 of file gzappend.c.
References argv, bye(), gzscan(), gztack(), level, NULL, printf(), strm, and Z_DEFAULT_COMPRESSION.
Definition at line 223 of file gzappend.c.
References in, long, read1, unsigned, and val.
Referenced by gzscan().
Definition at line 180 of file gzappend.c.
References bye(), in, len, read(), and unsigned.
Referenced by gzscan(), and readmore().
Definition at line 123 of file gzappend.c.
References from, gcd(), len, list(), start, autogen_x86imm::tmp, and to.
Referenced by getimmed8(), gzscan(), and LZ4HC_rotatePattern().
Definition at line 202 of file gzappend.c.
References bye(), in, lseek, n, readmore(), and SEEK_CUR.
Referenced by bskip(), deflate_index_extract(), demangle_classname(), do_extract_currentfile(), findMinMax(), get_relocs(), gzheader(), main(), parse_gdata_stream(), print_debug_maps_ascii_art(), reconstruct_chained_fixup(), rz_analysis_reflines_get(), rz_asm_pseudo_incbin(), rz_core_visual(), rz_core_visual_xrefs(), rz_main_rz_asm(), rz_print_bitstream_handler(), rz_str_widget_list(), show_analysis_classes(), show_class(), ts_lexer__advance(), ts_lexer__do_advance(), and uv_tty_init().