• Home
  • Raw
  • Download

Lines Matching refs:EXM_THROW

133 #define EXM_THROW(error, ...)                                             \  macro
338 if (finput == NULL) EXM_THROW(20, "%s : open file error ", input_filename); in LZ4IO_compressFilename_Legacy()
340 if (foutput == NULL) { fclose(finput); EXM_THROW(20, "%s : open file error ", input_filename); } in LZ4IO_compressFilename_Legacy()
345 if (!in_buff || !out_buff) EXM_THROW(21, "Allocation error : not enough memory"); in LZ4IO_compressFilename_Legacy()
350 if (sizeCheck!=MAGICNUMBER_SIZE) EXM_THROW(22, "Write error : cannot write header"); } in LZ4IO_compressFilename_Legacy()
358 …if (inSize > LEGACY_BLOCKSIZE) EXM_THROW(23, "Read error : wrong fread() size report "); /* shou… in LZ4IO_compressFilename_Legacy()
369 … if (sizeCheck!=(size_t)(outSize+4)) EXM_THROW(24, "Write error : cannot write compressed block"); in LZ4IO_compressFilename_Legacy()
371 if (ferror(finput)) EXM_THROW(25, "Error while reading %s ", input_filename); in LZ4IO_compressFilename_Legacy()
412 …if (LZ4F_isError(errorCode)) EXM_THROW(30, "Allocation error : can't create LZ4F context : %s", LZ… in LZ4IO_createCResources()
419 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "Allocation error : not enough memory"); in LZ4IO_createCResources()
429 …if (LZ4F_isError(errorCode)) EXM_THROW(38, "Error : can't free LZ4F context resource : %s", LZ4F_g… in LZ4IO_freeCResources()
474 if (ferror(srcFile)) EXM_THROW(30, "Error reading %s ", srcFileName); in LZ4IO_compressFilename_extRess()
481 if (LZ4F_isError(cSize)) EXM_THROW(31, "Compression failed : %s", LZ4F_getErrorName(cSize)); in LZ4IO_compressFilename_extRess()
488 if (sizeCheck!=cSize) EXM_THROW(32, "Write error : cannot write compressed block"); in LZ4IO_compressFilename_extRess()
497 …if (LZ4F_isError(headerSize)) EXM_THROW(33, "File header generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename_extRess()
499 if (sizeCheck!=headerSize) EXM_THROW(34, "Write error : cannot write header"); } in LZ4IO_compressFilename_extRess()
508 … if (LZ4F_isError(outSize)) EXM_THROW(35, "Compression failed : %s", LZ4F_getErrorName(outSize)); in LZ4IO_compressFilename_extRess()
514 … if (sizeCheck!=outSize) EXM_THROW(36, "Write error : cannot write compressed block"); } in LZ4IO_compressFilename_extRess()
520 if (ferror(srcFile)) EXM_THROW(37, "Error reading %s ", srcFileName); in LZ4IO_compressFilename_extRess()
524 …if (LZ4F_isError(headerSize)) EXM_THROW(38, "End of file generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename_extRess()
527 if (sizeCheck!=headerSize) EXM_THROW(39, "Write error : cannot write end of stream"); } in LZ4IO_compressFilename_extRess()
541 …if (g_removeSrcFile) { if (remove(srcFileName)) EXM_THROW(40, "Remove error : %s: %s", srcFileName… in LZ4IO_compressFilename_extRess()
630 if (sizeCheck != bufferSize) EXM_THROW(70, "Write error : cannot write decoded block"); in LZ4IO_fwriteSparse()
637 if (seekResult != 0) EXM_THROW(71, "1 GB skip error (sparse file support)"); in LZ4IO_fwriteSparse()
654 …if (seekResult) EXM_THROW(72, "Sparse skip error(%d): %s ; try --no-sparse", (int)errno, strerror(… in LZ4IO_fwriteSparse()
660 … if (sizeCheck != seg0SizeT) EXM_THROW(73, "Write error : cannot write decoded block"); in LZ4IO_fwriteSparse()
674 if (seekResult) EXM_THROW(74, "Sparse skip error ; try --no-sparse"); in LZ4IO_fwriteSparse()
677 …if (sizeCheck != (size_t)(restEnd - restPtr)) EXM_THROW(75, "Write error : cannot write decoded en… in LZ4IO_fwriteSparse()
688 if (seekResult != 0) EXM_THROW(69, "Final skip error (sparse file)\n"); in LZ4IO_fwriteSparseEnd()
691 if (sizeCheck != 1) EXM_THROW(69, "Write error : cannot write last zero\n"); in LZ4IO_fwriteSparseEnd()
707 if (!in_buff || !out_buff) EXM_THROW(51, "Allocation error : not enough memory"); in LZ4IO_decodeLegacyStream()
717 if (sizeCheck != 4) EXM_THROW(52, "Read error : cannot access block size "); } in LZ4IO_decodeLegacyStream()
727 … if (sizeCheck!=blockSize) EXM_THROW(52, "Read error : cannot access compressed block !"); } in LZ4IO_decodeLegacyStream()
731 if (decodeSize < 0) EXM_THROW(53, "Decoding Failed ! Corrupted input detected !"); in LZ4IO_decodeLegacyStream()
737 if (ferror(finput)) EXM_THROW(54, "Read error : ferror"); in LZ4IO_decodeLegacyStream()
766 …if (LZ4F_isError(errorCode)) EXM_THROW(60, "Can't create LZ4F context : %s", LZ4F_getErrorName(err… in LZ4IO_createDResources()
773 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(61, "Allocation error : not enough memory"); in LZ4IO_createDResources()
782 …if (LZ4F_isError(errorCode)) EXM_THROW(69, "Error : can't free LZ4F context resource : %s", LZ4F_g… in LZ4IO_freeDResources()
799 … if (LZ4F_isError(nextToLoad)) EXM_THROW(62, "Header error : %s", LZ4F_getErrorName(nextToLoad)); in LZ4IO_decompressLZ4F()
818 …if (LZ4F_isError(nextToLoad)) EXM_THROW(66, "Decompression error : %s", LZ4F_getErrorName(nextToLo… in LZ4IO_decompressLZ4F()
833 if (ferror(srcFile)) EXM_THROW(67, "Read error"); in LZ4IO_decompressLZ4F()
836 if (nextToLoad!=0) EXM_THROW(68, "Unfinished stream"); in LZ4IO_decompressLZ4F()
852 if (sizeCheck != MAGICNUMBER_SIZE) EXM_THROW(50, "Pass-through write error"); in LZ4IO_passThrough()
859 if (ferror(finput)) EXM_THROW(51, "Read Error") in LZ4IO_passThrough()
900 …if (nbReadBytes != MAGICNUMBER_SIZE) EXM_THROW(40, "Unrecognized header : Magic Number unreadable"… in selectDecoder()
915 if (nbReadBytes != 4) EXM_THROW(42, "Stream error : skippable size unreadable"); } in selectDecoder()
918 if (errorNb != 0) EXM_THROW(43, "Stream error : cannot skip skippable area"); } in selectDecoder()
927EXM_THROW(44,"Unrecognized header : file cannot be decoded"); /* Wrong magic number at the begin… in selectDecoder()
955 …if (g_removeSrcFile) { if (remove(input_filename)) EXM_THROW(45, "Remove error : %s: %s", input_fi… in LZ4IO_decompressSrcFile()