Rizin
unix-like reverse engineering framework and cli tools
|
lzmainfo tool for compatibility with LZMA Utils More...
#include "sysdefs.h"
#include <stdio.h>
#include <errno.h>
#include "lzma.h"
#include "getopt.h"
#include "tuklib_gettext.h"
#include "tuklib_progname.h"
#include "tuklib_exit.h"
Go to the source code of this file.
Functions | |
static void | lzma_attribute ((__noreturn__)) |
static void | parse_args (int argc, char **argv) |
Parse command line options. More... | |
static uint32_t | my_log2 (uint32_t n) |
Primitive base-2 logarithm for integers. More... | |
static bool | lzmainfo (const char *name, FILE *f) |
Parse the .lzma header and display information about it. More... | |
int | main (int argc, char **argv) |
lzmainfo tool for compatibility with LZMA Utils
Definition in file lzmainfo.c.
|
static |
Definition at line 29 of file lzmainfo.c.
References _, PACKAGE_BUGREPORT, PACKAGE_NAME, PACKAGE_URL, printf(), progname, and tuklib_exit.
Parse the .lzma header and display information about it.
Definition at line 101 of file lzmainfo.c.
References _, lzma_options_lzma::dict_size, ENOMEM, test-lz4-list::exit, f, free(), i, lzma_options_lzma::lc, lzma_options_lzma::lp, LZMA_FILTER_LZMA1, LZMA_MEM_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, my_log2(), NULL, lzma_options_lzma::pb, printf(), PRIu32, PRIu64, progname, UINT64_MAX, and uncompressed_size.
Referenced by main().
Definition at line 172 of file lzmainfo.c.
References argv, f, benchmark::FILE, lzmainfo(), NULL, O_BINARY, optind, PACKAGE, parse_args(), printf(), progname, tuklib_exit, tuklib_gettext_init, and tuklib_progname_init.
Primitive base-2 logarithm for integers.
Definition at line 91 of file lzmainfo.c.
Referenced by lzmainfo().
|
static |
Parse command line options.
Definition at line 58 of file lzmainfo.c.
References argv, c, test-lz4-list::exit, getopt_long(), cmd_descs_generate::help, no_argument, NULL, and version.
Referenced by main().