Rizin
unix-like reverse engineering framework and cli tools
|
Decompress .xz files to stdout. More...
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <lzma.h>
Go to the source code of this file.
Functions | |
static bool | init_decoder (lzma_stream *strm) |
static bool | decompress (lzma_stream *strm, const char *inname, FILE *infile, FILE *outfile) |
int | main (int argc, char **argv) |
Decompress .xz files to stdout.
Usage: ./02_decompress INPUT_FILES... > OUTFILE
Example: ./02_decompress foo.xz bar.xz > foobar
Definition in file 02_decompress.c.
|
static |
Definition at line 104 of file 02_decompress.c.
References test-lz4-speed::action, lzma_stream::avail_in, lzma_stream::avail_out, if(), inbuf, LZMA_BUF_ERROR, LZMA_DATA_ERROR, LZMA_FINISH, LZMA_FORMAT_ERROR, LZMA_MEM_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_RUN, LZMA_STREAM_END, msg, lzma_stream::next_in, lzma_stream::next_out, NULL, outbuf, outfile, and strm.
Referenced by main().
|
static |
Definition at line 26 of file 02_decompress.c.
References LZMA_CONCATENATED, LZMA_MEM_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, msg, strm, and UINT64_MAX.
Referenced by main().
Definition at line 244 of file 02_decompress.c.
References argv, decompress(), benchmark::FILE, i, init_decoder(), LZMA_STREAM_INIT, NULL, and strm.