45 fprintf(stderr,
"%s:%u: %s: ret == %d\n",
46 __FILE__, __LINE__, __func__, ret);
56 fprintf(stderr,
"%s:%u: %s: ret == %d\n",
57 __FILE__, __LINE__, __func__, ret);
71 if (lzma_lzma_preset(&
opt_lzma, 1)) {
72 fprintf(stderr,
"preset failed\n");
82 fprintf(stderr,
"init failed\n");
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
const lzma_filter * filters
#define LZMA_FILTERS_MAX
Maximum number of filters in a chain.
int main(int argc, char **argv)
static void encode(size_t size, lzma_action action)
static static fork const void static count static fd const char const char static newpath char char argv
#define LZMA_FILTER_LZMA2
LZMA2 Filter ID.
The public API of liblzma data compression library.
void * options
Pointer to filter-specific options structure.
Options specific to the LZMA1 and LZMA2 filters.
Passing data to and from liblzma.
Common includes, definitions, system-specific things etc.
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_STREAM_END
End of stream was reached.
@ LZMA_OK
Operation completed successfully.
lzma_action
The ‘action’ argument for lzma_code()
@ LZMA_FINISH
Finish the coding operation.
@ LZMA_RUN
Continue coding.
@ LZMA_FULL_FLUSH
Finish encoding of the current Block.
#define LZMA_STREAM_INIT
Initialization for lzma_stream.