staticconstchar *lzma_strerror(lzma_ret ret)
{ switch ((int) ret) { case LZMA_MEM_ERROR: return"Memory allocation failed"; case LZMA_OPTIONS_ERROR: return"Unsupported decompressor flags"; case LZMA_FORMAT_ERROR: return"The input is not in the .xz format"; case LZMA_DATA_ERROR: return"Compressed file is corrupt"; case LZMA_BUF_ERROR: return"Compressed file is truncated or otherwise corrupt"; default: return"Unknown error, possibly a bug";
}
}
int lzma_decompress_stream_to_file(FILE *infile, int output_fd)
{
lzma_action action = LZMA_RUN;
lzma_stream strm = LZMA_STREAM_INIT;
lzma_ret ret; int err = -1;
u8 buf_in[BUFSIZE];
u8 buf_out[BUFSIZE];
ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); if (ret != LZMA_OK) {
pr_debug("lzma: lzma_stream_decoder failed %s (%d)\n", lzma_strerror(ret), ret); return err;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.