Lines Matching refs:ret
47 lzma_ret ret;
65 if ((ret = lzma_stream_decoder(&strm, UINT64_MAX, flags)) != LZMA_OK)
66 maybe_errx("Can't initialize decoder (%d)", ret);
70 if ((ret = lzma_code(&strm, LZMA_RUN)) != LZMA_OK)
71 maybe_errx("Can't read headers (%d)", ret);
96 ret = lzma_code(&strm, action);
101 if (strm.avail_out == 0 || ret != LZMA_OK) {
112 if (ret != LZMA_OK) {
113 if (ret == LZMA_STREAM_END) {
116 ret = LZMA_DATA_ERROR;
124 switch (ret) {
151 maybe_errx("Unknown error (%d)", ret);
275 lzma_ret ret;
330 ret = lzma_stream_footer_decode(&footer_flags, buf.u8);
331 if (ret != LZMA_OK) {
357 ret = lzma_index_decoder(&strm, &this_index, UINT64_MAX);
358 if (ret != LZMA_OK) {
373 ret = lzma_code(&strm, LZMA_RUN);
375 } while (ret == LZMA_OK);
380 if (ret == LZMA_STREAM_END)
382 ret = LZMA_DATA_ERROR;
384 if (ret != LZMA_STREAM_END) {
390 if (ret == LZMA_BUF_ERROR)
391 ret = LZMA_DATA_ERROR;
407 ret = lzma_stream_header_decode(&header_flags, buf.u8);
408 if (ret != LZMA_OK) {
412 ret = lzma_stream_flags_compare(&header_flags, &footer_flags);
413 if (ret != LZMA_OK) {
420 ret = lzma_index_stream_flags(this_index, &footer_flags);
421 if (ret != LZMA_OK)
426 ret = lzma_index_stream_padding(this_index, stream_padding);
427 if (ret != LZMA_OK)
433 ret = lzma_index_cat(
435 if (ret != LZMA_OK) {