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);
92 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.
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.
@ LZMA_MODE_NORMAL
Normal compression.
@ LZMA_MF_HC3
Hash Chain with 2- and 3-byte hashing.
The public API of liblzma data compression library.
void * options
Pointer to filter-specific options structure.
Options for the Delta filter.
uint32_t dist
Delta distance.
Options specific to the LZMA1 and LZMA2 filters.
uint32_t dict_size
Dictionary size in bytes.
Passing data to and from liblzma.
int main(int argc, char **argv)
static void encode(size_t size, lzma_action action)
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_SYNC_FLUSH
Make all the input available at output.
@ LZMA_FINISH
Finish the coding operation.
@ LZMA_RUN
Continue coding.
#define LZMA_STREAM_INIT
Initialization for lzma_stream.