Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c827 size_t errorCode; in FSE_decompress_usingDTable_generic() local
830errorCode = FSE_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
831 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
905 size_t errorCode; in FSE_decompress() local
910 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
911 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
912 if (errorCode >= cSrcSize) return (size_t)-FSE_ERROR_srcSize_wrong; /* too small input size */ in FSE_decompress()
913 ip += errorCode; in FSE_decompress()
914 cSrcSize -= errorCode; in FSE_decompress()
916 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
H A Dzstd_v05.c1437 size_t errorCode; in FSEv05_decompress_usingDTable_generic() local
1440errorCode = BITv05_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Siz… in FSEv05_decompress_usingDTable_generic()
1441 if (FSEv05_isError(errorCode)) return errorCode; in FSEv05_decompress_usingDTable_generic()
1514 size_t errorCode; in FSEv05_decompress() local
1519 errorCode = FSEv05_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSEv05_decompress()
1520 if (FSEv05_isError(errorCode)) return errorCode; in FSEv05_decompress()
1521 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSEv05_decompress()
1522 ip += errorCode; in FSEv05_decompress()
1523 cSrcSize -= errorCode; in FSEv05_decompress()
1525 errorCode = FSEv05_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv05_decompress()
[all …]
H A Dzstd_v02.c1350 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1353errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1354 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1428 size_t errorCode; in FSE_decompress() local
1433 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1434 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1435 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1436 ip += errorCode; in FSE_decompress()
1437 cSrcSize -= errorCode; in FSE_decompress()
1439 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
H A Dzstd_v03.c1351 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1354errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1355 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1429 size_t errorCode; in FSE_decompress() local
1434 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1435 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1436 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1437 ip += errorCode; in FSE_decompress()
1438 cSrcSize -= errorCode; in FSE_decompress()
1440 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
H A Dzstd_v06.c1582 …{ size_t const errorCode = BITv06_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by ma… in FSEv06_decompress_usingDTable_generic() local
1583 if (FSEv06_isError(errorCode)) return errorCode; } in FSEv06_decompress_usingDTable_generic()
1668 { size_t const errorCode = FSEv06_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv06_decompress() local
1669 if (FSEv06_isError(errorCode)) return errorCode; } in FSEv06_decompress()
2104 { size_t const errorCode = BITv06_initDStream(&bitD, cSrc, cSrcSize); in HUFv06_decompress1X2_usingDTable() local
2105 if (HUFv06_isError(errorCode)) return errorCode; } in HUFv06_decompress1X2_usingDTable()
2120 size_t const errorCode = HUFv06_readDTableX2 (DTable, cSrc, cSrcSize); in HUFv06_decompress1X2() local
2121 if (HUFv06_isError(errorCode)) return errorCode; in HUFv06_decompress1X2()
2122 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress1X2()
2123 ip += errorCode; in HUFv06_decompress1X2()
[all …]
H A Dzstd_v04.c1330 size_t errorCode; in FSE_decompress_usingDTable_generic() local
1333errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by maxCompressed Size */ in FSE_decompress_usingDTable_generic()
1334 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress_usingDTable_generic()
1411 size_t errorCode; in FSE_decompress() local
1416 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress()
1417 if (FSE_isError(errorCode)) return errorCode; in FSE_decompress()
1418 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1419 ip += errorCode; in FSE_decompress()
1420 cSrcSize -= errorCode; in FSE_decompress()
1422 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSE_decompress()
[all …]
H A Dzstd_v07.c1602 …{ size_t const errorCode = BITv07_initDStream(&bitD, cSrc, cSrcSize); /* replaced last arg by ma… in FSEv07_decompress_usingDTable_generic() local
1603 if (FSEv07_isError(errorCode)) return errorCode; } in FSEv07_decompress_usingDTable_generic()
1688 { size_t const errorCode = FSEv07_buildDTable (dt, counting, maxSymbolValue, tableLog); in FSEv07_decompress() local
1689 if (FSEv07_isError(errorCode)) return errorCode; } in FSEv07_decompress()
1880 { size_t const errorCode = BITv07_initDStream(&bitD, cSrc, cSrcSize); in HUFv07_decompress1X2_usingDTable_internal() local
1881 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress1X2_usingDTable_internal()
1960 { size_t const errorCode = BITv07_initDStream(&bitD1, istart1, length1); in HUFv07_decompress4X2_usingDTable_internal() local
1961 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress4X2_usingDTable_internal()
1962 { size_t const errorCode = BITv07_initDStream(&bitD2, istart2, length2); in HUFv07_decompress4X2_usingDTable_internal() local
1963 if (HUFv07_isError(errorCode)) return errorCode; } in HUFv07_decompress4X2_usingDTable_internal()
[all …]
H A Dzstd_v04.h122 unsigned ZBUFFv04_isError(size_t errorCode);
123 const char* ZBUFFv04_getErrorName(size_t errorCode);
H A Dzstd_v05.h140 unsigned ZBUFFv05_isError(size_t errorCode);
141 const char* ZBUFFv05_getErrorName(size_t errorCode);
H A Dzstd_v06.h152 ZSTDLIBv06_API unsigned ZBUFFv06_isError(size_t errorCode);
153 ZSTDLIBv06_API const char* ZBUFFv06_getErrorName(size_t errorCode);
H A Dzstd_v07.h168 ZSTDLIBv07_API unsigned ZBUFFv07_isError(size_t errorCode);
169 ZSTDLIBv07_API const char* ZBUFFv07_getErrorName(size_t errorCode);
/freebsd/sys/contrib/zstd/lib/deprecated/
H A Dzbuff_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
H A Dzbuff.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/contrib/expat/examples/
H A Delement_declarations.c221 enum XML_Error errorCode = XML_GetErrorCode(parser); in main()
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()
220 enum XML_Error errorCode = XML_GetErrorCode(parser); main() local
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c98 unsigned ZDICT_isError(size_t errorCode) { return ERR_isError(errorCode); } in ZDICT_isError() argument
100 const char* ZDICT_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); } in ZDICT_getErrorName() argument
648 { size_t const errorCode = ZSTD_compressBegin_usingCDict(esr.zc, esr.dict); in ZDICT_countEStats() local
649 …if (ZSTD_isError(errorCode)) { DISPLAYLEVEL(1, "warning : ZSTD_compressBegin_usingCDict failed \n"… in ZDICT_countEStats()
752 size_t pos = 0, errorCode; in ZDICT_analyzeEntropy() local
820errorCode = FSE_normalizeCount(offcodeNCount, Offlog, offcodeCount, total, offcodeMax, /* useLowPr… in ZDICT_analyzeEntropy()
821 if (FSE_isError(errorCode)) { in ZDICT_analyzeEntropy()
822 eSize = errorCode; in ZDICT_analyzeEntropy()
826 Offlog = (U32)errorCode; in ZDICT_analyzeEntropy()
829errorCode = FSE_normalizeCount(matchLengthNCount, mlLog, matchLengthCount, total, MaxML, /* useLow… in ZDICT_analyzeEntropy()
[all …]
/freebsd/contrib/expat/tests/
H A Dcommon.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__)
H A Dcommon.c214 _expect_failure(const char *text, enum XML_Error errorCode, in _expect_failure()
221 if (XML_GetErrorCode(g_parser) != errorCode) in _expect_failure()
213 _expect_failure(const char * text,enum XML_Error errorCode,const char * errorMessage,const char * file,int lineno) _expect_failure() argument
/freebsd/sys/contrib/zstd/lib/
H A Dzdict.h260 ZDICTLIB_API unsigned ZDICT_isError(size_t errorCode);
261 ZDICTLIB_API const char* ZDICT_getErrorName(size_t errorCode);
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_msg.c719 int64_t errorCode, const char *details, in ossl_cmp_error_new() argument
736 if ((msg->body->value.error->errorCode = ASN1_INTEGER_new()) == NULL) in ossl_cmp_error_new()
738 if (!ASN1_INTEGER_set_int64(msg->body->value.error->errorCode, errorCode)) in ossl_cmp_error_new()
740 if (errorCode > 0 in ossl_cmp_error_new()
741 && (uint64_t)errorCode < ((uint64_t)ERR_SYSTEM_FLAG << 1)) { in ossl_cmp_error_new()
742 lib = ERR_lib_error_string((unsigned long)errorCode); in ossl_cmp_error_new()
743 reason = ERR_reason_error_string((unsigned long)errorCode); in ossl_cmp_error_new()
H A Dcmp_client.c217 if (emc->errorCode != NULL in send_receive_check()
219 ASN1_INTEGER_get(emc->errorCode)) > 0) in send_receive_check()
385 const char *txt, int errorCode, const char *details) in ossl_cmp_exchange_error() argument
396 if ((error = ossl_cmp_error_new(ctx, si, errorCode, details, 0)) == NULL) in ossl_cmp_exchange_error()
H A Dcmp_local.h358 ASN1_INTEGER *errorCode; member
887 int64_t errorCode, const char *details,
931 const char *txt, int errorCode, const char *detail);
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_cmp_certreq_new.pod41 int64_t errorCode, const char *details,
145 I<si>, I<errorCode>, and optional I<details>.
146 If I<errorCode> is positive and in the range of an OpenSSL error code,
/freebsd/crypto/openssl/apps/lib/
H A Dcmp_mock_srv.c319 const ASN1_INTEGER *errorCode, in process_error() argument
342 if (errorCode == NULL) in process_error()
345 BIO_printf(bio_err, "errorCode: %ld\n", ASN1_INTEGER_get(errorCode)); in process_error()
/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c475 { size_t errorCode; in z_deflateEnd() local
479 errorCode = ZWRAP_freeCCtx(zwc); in z_deflateEnd()
480 if (ZSTD_isError(errorCode)) return Z_STREAM_ERROR; in z_deflateEnd()
720 … { size_t const errorCode = ZSTD_decompressStream(zwd->zbd, &zwd->outBuffer, &zwd->inBuffer); in z_inflateSetDictionary() local
722 (int)errorCode, (int)zwd->inBuffer.size, (int)zwd->outBuffer.size); in z_inflateSetDictionary()
723 if (zwd->inBuffer.pos < zwd->outBuffer.size || ZSTD_isError(errorCode)) { in z_inflateSetDictionary()
725 ZSTD_getErrorName(errorCode)); in z_inflateSetDictionary()
/freebsd/sys/contrib/zstd/programs/
H A Dbenchzstd.c833 { int const errorCode = BMK_loadFiles(dictBuffer, dictBufferSize, in BMK_benchFilesAdvanced() local
836 if (errorCode) { in BMK_benchFilesAdvanced()
856 { int const errorCode = BMK_loadFiles(srcBuffer, benchedSize, in BMK_benchFilesAdvanced() local
859 if (errorCode) { in BMK_benchFilesAdvanced()

12