Home
last modified time | relevance | path

Searched refs:errorCode (Results 1 – 24 of 24) sorted by relevance

/freebsd-13-stable/sys/contrib/zstd/lib/deprecated/
HDzbuff_common.c23 unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); } in ZBUFF_isError() argument
26 const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); } in ZBUFF_getErrorName() argument
HDzbuff.h163 ZBUFF_DEPRECATED("use ZSTD_isError") unsigned ZBUFF_isError(size_t errorCode);
164 ZBUFF_DEPRECATED("use ZSTD_getErrorName") const char* ZBUFF_getErrorName(size_t errorCode);
/freebsd-13-stable/sys/contrib/zstd/lib/legacy/
HDzstd_v01.c831 size_t errorCode; in FSE_decompress_usingDTable_generic() local
834errorCode = FSE_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
835 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
909 size_t errorCode; in FSE_decompress() local
914 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
915 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
916 if (errorCode >= cSrcSize) return (size_t)-FSE_ERROR_srcSize_wrong; /* too small input size */ in FSE_decompress()
917 ip += errorCode; in FSE_decompress()
918 cSrcSize -= errorCode; in FSE_decompress()
920 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
HDzstd_v05.c1441 size_t errorCode; in FSEv05_decompress_usingDTable_generic() local
1444errorCode = BITv05_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Siz… in FSEv05_decompress_usingDTable_generic()
1445 if (FSEv05_isError(errorCode)) return errorCode; in FSEv05_decompress_usingDTable_generic()
1518 size_t errorCode; in FSEv05_decompress() local
1523 errorCode = FSEv05_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSEv05_decompress()
1524 if (FSEv05_isError(errorCode)) return errorCode; in FSEv05_decompress()
1525 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSEv05_decompress()
1526 ip += errorCode; in FSEv05_decompress()
1527 cSrcSize -= errorCode; in FSEv05_decompress()
1529 errorCode = FSEv05_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv05_decompress()
[all …]
HDzstd_v02.c1354 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1357errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1358 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1432 size_t errorCode; in FSE_decompress() local
1437 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1438 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1439 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1440 ip += errorCode; in FSE_decompress()
1441 cSrcSize -= errorCode; in FSE_decompress()
1443 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
HDzstd_v03.c1355 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1358errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1359 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1433 size_t errorCode; in FSE_decompress() local
1438 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1439 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1440 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1441 ip += errorCode; in FSE_decompress()
1442 cSrcSize -= errorCode; in FSE_decompress()
1444 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
HDzstd_v04.c1334 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1337errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1338 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1415 size_t errorCode; in FSE_decompress() local
1420 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1421 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1422 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1423 ip += errorCode; in FSE_decompress()
1424 cSrcSize -= errorCode; in FSE_decompress()
1426 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
HDzstd_v06.c1586 …{ size_t const errorCode = BITv06_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by ma… in FSEv06_decompress_usingDTable_generic() local
1587 if (FSEv06_isError(errorCode)) return errorCode; } in FSEv06_decompress_usingDTable_generic()
1672 { size_t const errorCode = FSEv06_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv06_decompress() local
1673 if (FSEv06_isError(errorCode)) return errorCode; } in FSEv06_decompress()
2108 { size_t const errorCode = BITv06_initDStream(&bitD, cSrc, cSrcSize); in HUFv06_decompress1X2_usingDTable() local
2109 if (HUFv06_isError(errorCode)) return errorCode; } in HUFv06_decompress1X2_usingDTable()
2124 size_t const errorCode = HUFv06_readDTableX2 (DTable, cSrc, cSrcSize); in HUFv06_decompress1X2() local
2125 if (HUFv06_isError(errorCode)) return errorCode; in HUFv06_decompress1X2()
2126 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress1X2()
2127 ip += errorCode; in HUFv06_decompress1X2()
[all …]
HDzstd_v07.c1606 …{ size_t const errorCode = BITv07_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by ma… in FSEv07_decompress_usingDTable_generic() local
1607 if (FSEv07_isError(errorCode)) return errorCode; } in FSEv07_decompress_usingDTable_generic()
1692 { size_t const errorCode = FSEv07_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv07_decompress() local
1693 if (FSEv07_isError(errorCode)) return errorCode; } in FSEv07_decompress()
1884 { size_t const errorCode = BITv07_initDStream(&bitD, cSrc, cSrcSize); in HUFv07_decompress1X2_usingDTable_internal() local
1885 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress1X2_usingDTable_internal()
1964 { size_t const errorCode = BITv07_initDStream(&bitD1, istart1, length1); in HUFv07_decompress4X2_usingDTable_internal() local
1965 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress4X2_usingDTable_internal()
1966 { size_t const errorCode = BITv07_initDStream(&bitD2, istart2, length2); in HUFv07_decompress4X2_usingDTable_internal() local
1967 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress4X2_usingDTable_internal()
[all …]
HDzstd_v04.h122 unsigned ZBUFFv04_isError(size_t errorCode);
123 const char* ZBUFFv04_getErrorName(size_t errorCode);
HDzstd_v07.h168 ZSTDLIBv07_API unsigned ZBUFFv07_isError(size_t errorCode);
169 ZSTDLIBv07_API const char* ZBUFFv07_getErrorName(size_t errorCode);
HDzstd_v05.h140 unsigned ZBUFFv05_isError(size_t errorCode);
141 const char* ZBUFFv05_getErrorName(size_t errorCode);
HDzstd_v06.h152 ZSTDLIBv06_API unsigned ZBUFFv06_isError(size_t errorCode);
153 ZSTDLIBv06_API const char* ZBUFFv06_getErrorName(size_t errorCode);
/freebsd-13-stable/contrib/expat/examples/
HDelement_declarations.c221 enum XML_Error errorCode = XML_GetErrorCode(parser); in main() local
222 if (errorCode == XML_ERROR_ABORTED) { in main()
223 errorCode = XML_ERROR_NO_MEMORY; in main()
227 XML_GetCurrentLineNumber(parser), XML_ErrorString(errorCode)); in main()
/freebsd-13-stable/sys/contrib/zstd/lib/dictBuilder/
HDzdict.c93 unsigned ZDICT_isError(size_t errorCode) { return ERR_isError(errorCode); } in ZDICT_isError() argument
95 const char* ZDICT_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); } in ZDICT_getErrorName() argument
623 { size_t const errorCode = ZSTD_compressBegin_usingCDict(esr.zc, esr.dict); in ZDICT_countEStats() local
624 …if (ZSTD_isError(errorCode)) { DISPLAYLEVEL(1, "warning : ZSTD_compressBegin_usingCDict failed \n"… in ZDICT_countEStats()
727 size_t pos = 0, errorCode; in ZDICT_analyzeEntropy() local
788errorCode = FSE_normalizeCount(offcodeNCount, Offlog, offcodeCount, total, offcodeMax, /* useLowPr… in ZDICT_analyzeEntropy()
789 if (FSE_isError(errorCode)) { in ZDICT_analyzeEntropy()
790 eSize = errorCode; in ZDICT_analyzeEntropy()
794 Offlog = (U32)errorCode; in ZDICT_analyzeEntropy()
797errorCode = FSE_normalizeCount(matchLengthNCount, mlLog, matchLengthCount, total, MaxML, /* useLow… in ZDICT_analyzeEntropy()
[all …]
HDzdict.h115 ZDICTLIB_API unsigned ZDICT_isError(size_t errorCode);
116 ZDICTLIB_API const char* ZDICT_getErrorName(size_t errorCode);
/freebsd-13-stable/contrib/expat/tests/
HDcommon.h104 extern void _expect_failure(const char *text, enum XML_Error errorCode,
108 # define expect_failure(text, errorCode, errorMessage) \ argument
109 _expect_failure((text), (errorCode), (errorMessage), __FILE__, __LINE__)
HDcommon.c222 _expect_failure(const char *text, enum XML_Error errorCode, in _expect_failure() argument
229 if (XML_GetErrorCode(g_parser) != errorCode) in _expect_failure()
/freebsd-13-stable/sys/contrib/zstd/zlibWrapper/
HDzstd_zlibwrapper.c460 { size_t errorCode; in z_deflateEnd() local
464 errorCode = ZWRAP_freeCCtx(zwc); in z_deflateEnd()
465 if (ZSTD_isError(errorCode)) return Z_STREAM_ERROR; in z_deflateEnd()
705 … { size_t const errorCode = ZSTD_decompressStream(zwd->zbd, &zwd->outBuffer, &zwd->inBuffer); in z_inflateSetDictionary() local
707 (int)errorCode, (int)zwd->inBuffer.size, (int)zwd->outBuffer.size); in z_inflateSetDictionary()
708 if (zwd->inBuffer.pos < zwd->outBuffer.size || ZSTD_isError(errorCode)) { in z_inflateSetDictionary()
710 ZSTD_getErrorName(errorCode)); in z_inflateSetDictionary()
/freebsd-13-stable/sys/contrib/zstd/programs/
HDbenchzstd.c829 { int const errorCode = BMK_loadFiles(dictBuffer, dictBufferSize, in BMK_benchFilesAdvanced() local
832 if (errorCode) { in BMK_benchFilesAdvanced()
852 { int const errorCode = BMK_loadFiles(srcBuffer, benchedSize, in BMK_benchFilesAdvanced() local
855 if (errorCode) { in BMK_benchFilesAdvanced()
HDfileio.c1194 LZ4F_errorCode_t const errorCode = LZ4F_createCompressionContext(&ctx, LZ4F_VERSION); in FIO_compressLz4Frame() local
1195 if (LZ4F_isError(errorCode)) in FIO_compressLz4Frame()
2319 LZ4F_errorCode_t const errorCode = LZ4F_createDecompressionContext(&dCtx, LZ4F_VERSION); in FIO_decompressLz4Frame() local
2323 if (LZ4F_isError(errorCode)) { in FIO_decompressLz4Frame()
/freebsd-13-stable/sys/contrib/zstd/lib/compress/
HDfse_compress.c476 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount() local
477 if (FSE_isError(errorCode)) return errorCode; in FSE_normalizeCount()
/freebsd-13-stable/crypto/heimdal/kdc/
HDannounce.c210 DNSServiceErrorType errorCode __attribute__((unused)), in dnsCallback() argument
/freebsd-13-stable/sys/contrib/openzfs/module/zstd/lib/
HDzstd.c7950 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount() local
7951 if (FSE_isError(errorCode)) return errorCode; in FSE_normalizeCount()
23305 unsigned ZBUFFv04_isError(size_t errorCode);
23306 const char* ZBUFFv04_getErrorName(size_t errorCode);
23469 unsigned ZBUFFv05_isError(size_t errorCode);
23470 const char* ZBUFFv05_getErrorName(size_t errorCode);
23647 ZSTDLIBv06_API unsigned ZBUFFv06_isError(size_t errorCode);
23648 ZSTDLIBv06_API const char* ZBUFFv06_getErrorName(size_t errorCode);
23839 ZSTDLIBv07_API unsigned ZBUFFv07_isError(size_t errorCode);
23840 ZSTDLIBv07_API const char* ZBUFFv07_getErrorName(size_t errorCode);