Rizin
unix-like reverse engineering framework and cli tools
|
Simple single-threaded tool to uncompress .xz or .lzma files. More...
#include "sysdefs.h"
#include "lzma.h"
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include "getopt.h"
#include "tuklib_progname.h"
#include "tuklib_exit.h"
Go to the source code of this file.
Macros | |
#define | TOOL_FORMAT "xz" |
Functions | |
static void | lzma_attribute ((__format__(__printf__, 1, 2))) |
static void | lzma_attribute ((__noreturn__)) |
static void | parse_options (int argc, char **argv) |
Parses command line options. More... | |
static void | uncompress (lzma_stream *strm, FILE *file, const char *filename) |
int | main (int argc, char **argv) |
Variables | |
static int | display_errors = 2 |
Simple single-threaded tool to uncompress .xz or .lzma files.
Definition in file xzdec.c.
|
static |
|
static |
Definition at line 60 of file xzdec.c.
References display_errors, PACKAGE_BUGREPORT, PACKAGE_NAME, PACKAGE_URL, printf(), progname, TOOL_FORMAT, and tuklib_exit.
Definition at line 274 of file xzdec.c.
References argv, display_errors, test-lz4-list::exit, benchmark::FILE, LZMA_STREAM_INIT, NULL, O_BINARY, optind, parse_options(), strm, tuklib_exit, tuklib_progname_init, and uncompress().
|
static |
Parses command line options.
Definition at line 96 of file xzdec.c.
References argv, c, display_errors, test-lz4-list::exit, getopt_long(), cmd_descs_generate::help, no_argument, NULL, and version.
Referenced by main().
|
static |
Definition at line 145 of file xzdec.c.
References test-lz4-speed::action, assert(), lzma_stream::avail_in, lzma_stream::avail_out, ENOMEM, test-lz4-list::exit, in_buf, LZMA_BUF_ERROR, LZMA_CONCATENATED, 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, out_buf, strm, and UINT64_MAX.
Referenced by main().
|
static |
Error messages are suppressed if this is zero, which is the case when –quiet has been given at least twice.
Definition at line 40 of file xzdec.c.
Referenced by lzma_attribute(), main(), and parse_options().