43 int64_t infile_remaining;
48 char *buffer = malloc(
CHUNK);
56 memset(&strm, 0,
sizeof(strm));
80 char *sha51_ptr =
NULL;
85 amanda->size_of_input_file_copy_z = amanda->size_of_input_file_copy_z +
sizeof(int64_t) +
sizeof(ar);
86 amanda->size_of_input_file_z = amanda->size_of_input_file_copy_z;
93 assert(0 <= (int64_t)amanda->offset_z - (int64_t)
sizeof(int64_t) - (int64_t)
sizeof(ar));
98 amanda->offset_z -
sizeof(int64_t) -
sizeof(ar),
101 amanda->retvalue = 403;
102 goto saida_12_march_2021__09_32_18;
105 memset(&ar, 0,
sizeof(ar));
106 ret_z = fread(&ar, 1, (
int)(
min((uint64_t)
sizeof(ar), (uint64_t)(amanda->size_of_input_file_copy_z))), amanda->input_file);
108 if (ret_z !=
sizeof(ar))
112 goto saida_12_march_2021__09_32_18;
114 amanda->size_of_input_file_copy_z -= ret_z;
119 goto saida_12_march_2021__09_32_18;
122 ret_z = fread(&remaining_z, 1, (
int)(
min((uint64_t)
sizeof(remaining_z), (uint64_t)(amanda->size_of_input_file_copy_z))), amanda->input_file);
124 if (
sizeof(remaining_z) != ret_z)
127 goto saida_12_march_2021__09_32_18;
130 amanda->size_of_input_file_copy_z -= ret_z;
135 goto saida_12_march_2021__09_32_18;
138 if (amanda->size_of_input_file_copy_z != remaining_z)
141 goto saida_12_march_2021__09_32_18;
286 while (*(amanda->intpause))
291 if (*(amanda->intcancel))
293 amanda->internal_error_arp = 119;
294 goto saida_12_march_2021__09_32_18;
298 if (*(amanda->intcancel))
300 amanda->internal_error_arp = 119;
301 goto saida_12_march_2021__09_32_18;
309 int64_t n_z = (int64_t)(
min((uint64_t)
CHUNK, (uint64_t)infile_remaining));
311 if ((
size_t)fread(buffer, 1, n_z, amanda->input_file) != (
size_t)n_z)
314 goto saida_12_march_2021__09_32_18;
319 infile_remaining -= n_z;
320 *(amanda->bytes_read_z) += n_z;
330 if (fwrite(
out, 1, n_z, amanda->dest) != (
size_t)n_z)
332 amanda->internal_error_arp = 6;
334 goto saida_12_march_2021__09_32_18;
386 goto saida_12_march_2021__09_32_18;
391saida_12_march_2021__09_32_18:;
393 if ((0 == retvalue) && ((int64_t)
totalbytes > (int64_t)
sizeof(ar)))
405 if ((int64_t)
totalbytes > (int64_t)
sizeof(ar))
408 if ((0 == done) && (0 == retvalue))
int zuncompress_sha512_k_mt_decoding_multi_thread_z__5(__attribute__((unused)) FILE *source, __attribute__((unused)) FILE *dest, __attribute__((unused)) my_thread_struct_z *amanda)
Definition gzip2_decoder_mt_z.c:35
#define __attribute__(unused_ric_since_2004)
Definition main_cr.c:84
void sha512_update_k(void *ctx, unsigned char *buffer_k, unsigned int len_k)
Definition sha512_k.c:835