#include "sysdefs.h"
#include "lzma.h"
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include "getopt.h"
#include "physmem.h"
Defines | |
| #define | TOOL_FORMAT "xz" |
Functions | |
| static void | lzma_attribute ((noreturn)) |
| static void | set_default_memlimit (void) |
| static uint64_t | str_to_uint64 (const char *value) |
| Converts a string to uint64_t. | |
| static void | parse_options (int argc, char **argv) |
| Parses command line options. | |
| static void | uncompress (lzma_stream *strm, FILE *file, const char *filename) |
| int | main (int argc, char **argv) |
Variables | |
| static uint64_t | memlimit |
| Number of bytes to use memory at maximum. | |
| static const char * | argv0 |
| Program name to be shown in error messages. | |
| static void set_default_memlimit | ( | void | ) | [static] |
Finds out the amount of physical memory in the system, and sets a default memory usage limit.
References physmem().
Referenced by parse_options().
| static uint64_t str_to_uint64 | ( | const char * | value | ) | [static] |
Converts a string to uint64_t.
This is rudely copied from src/xz/util.c and modified a little. :-(
References argv0.
| static void parse_options | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
uint64_t memlimit [static] |
Number of bytes to use memory at maximum.
const char* argv0 [static] |
Program name to be shown in error messages.
1.5.5