Go to the documentation of this file.
109 #define XZ_EXTERN STATIC
112 # include <linux/slab.h>
119 #define XZ_INTERNAL_CRC32 1
129 # define XZ_DEC_POWERPC
138 # define XZ_DEC_SPARC
157 #define kmalloc(size, flags) malloc(size)
158 #define kfree(ptr) free(ptr)
159 #define vmalloc(size) malloc(size)
160 #define vfree(ptr) do { if (ptr != NULL) free(ptr); } while (0)
177 static bool memeq(
const void *
a,
const void *
b,
size_t size)
183 for (i = 0; i <
size; ++
i)
211 for (i = 0; i <
size; ++
i)
241 #define XZ_IOBUF_SIZE 4096
252 int (*
fill)(
void *dest,
unsigned int size),
253 int (*flush)(
void *src,
unsigned int size),
254 unsigned char *
out,
int *in_used,
260 bool must_free_in =
false;
262 #if XZ_INTERNAL_CRC32
275 goto error_alloc_state;
284 goto error_alloc_out;
337 }
while (ret ==
XZ_OK);
357 error(
"XZ decompressor ran out of memory");
361 error(
"Input is not in the XZ format (wrong magic bytes)");
365 error(
"Input was encoded with settings that are not "
366 "supported by this XZ decoder");
371 error(
"XZ-compressed data is corrupt");
375 error(
"Bug in the XZ decompressor");
389 error(
"XZ decompressor ran out of memory");
397 #define decompress unxz