XZ Utils
5.2.2
|
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"
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 unsigned int | display_errors = 2 |
Simple single-threaded tool to uncompress .xz or .lzma files.
|
static |
Parses command line options.
References lzma_stream::avail_in, lzma_stream::avail_out, display_errors, filename, in_buf, lzma_alone_decoder(), LZMA_BUF_ERROR, lzma_code(), LZMA_CONCATENATED, LZMA_DATA_ERROR, lzma_end(), LZMA_FINISH, LZMA_FORMAT_ERROR, LZMA_MEM_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_RUN, lzma_stream_decoder(), LZMA_STREAM_END, LZMA_STREAM_INIT, lzma_stream::next_in, lzma_stream::next_out, and strm.
|
static |
Error messages are suppressed if this is zero, which is the case when –quiet has been given at least twice.
Referenced by parse_options().