91 msg =
"Memory allocation failed";
98 msg =
"Specified filter chain is not supported";
102 msg =
"Specified integrity check is not supported";
106 msg =
"Unknown error, possibly a bug";
110 fprintf(stderr,
"Error initializing the encoder: %s (error code %u)\n",
137 fprintf(stderr,
"Read error: %s\n",
153 fprintf(stderr,
"Write error: %s\n",
169 msg =
"Memory allocation failed";
173 msg =
"File size limits exceeded";
177 msg =
"Unknown error, possibly a bug";
181 fprintf(stderr,
"Encoder error: %s (error code %u)\n",
200 if (fclose(stdout)) {
201 fprintf(stderr,
"Write error: %s\n", strerror(errno));
205 return success ? EXIT_SUCCESS : EXIT_FAILURE;
static bool compress(lzma_stream *strm, FILE *infile, FILE *outfile)
static bool init_encoder(lzma_stream *strm)
#define LZMA_PRESET_DEFAULT
Default compression preset.
unsigned char outbuf[SIZE]
unsigned char inbuf[SIZE]
static uint32_t threads_max
The public API of liblzma data compression library.
static struct sockaddr static addrlen static backlog const void msg
uint32_t threads
Number of worker threads to use.
Passing data to and from liblzma.
if(dbg->bits==RZ_SYS_BITS_64)
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_DATA_ERROR
Data is corrupt.
@ LZMA_MEM_ERROR
Cannot allocate memory.
@ LZMA_STREAM_END
End of stream was reached.
@ LZMA_UNSUPPORTED_CHECK
Cannot calculate the integrity check.
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
@ LZMA_OK
Operation completed successfully.
lzma_action
The ‘action’ argument for lzma_code()
@ LZMA_FINISH
Finish the coding operation.
@ LZMA_RUN
Continue coding.
#define LZMA_STREAM_INIT
Initialization for lzma_stream.