Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
gzip2__thread.c
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
3 #2023 X March 21 19:50 PM Brasília Time
4
5* *
6* Licensa de Copia (C) <2023> <Aurora Boreal> *
7* *
8* Este programa e software livre: voce pode redistribuir isto e/ou *
9* modificar isto sobre os termos do GNU Licensa Geral Pública como 25
10* publicado pela Fundacao de Software Livre, tanto a versão 3 da *
11* Licensa, ou (dependendo da sua opcao) qualquer versao posterior. *
12* *
13* Este programa e distribuido na esperanca que isto vai ser util, *
14* mas SEM QUALQUER GARANTIA; sem ate mesmo a implicada garantia de *
15* COMERCIALIZAcaO ou CABIMENTO PARA UM FIM PARTICULAR. Veja a *
16* Licensa Geral Publica para mais detalhes. *
17* *
18* Você deve ter recebido uma cópia da LICENSA GERAL PUBLICA e a GNU *
19* Licensa Publica Menor junto com este programa *
20* Se não, veja <http://www.gnu.org/licenses/>. *
21* *
22* Suporte: sourceforge.net github.com *
23* *
24* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
25
26* Pereira: arsoftware25@gmail.com ricardo@arsoftware.net.br *
27* xcx: arsoftware10@gmail.com charli@arsoftware.net.br *
28 Yasmin: yasmin@arsoftware.net.br *
29 pereira1001@users.sourceforge.net
30 */
31
32
34
35unsigned __stdcall my_thread_function_v27__5(void *my_argument_z)
36{
37 my_thread_struct_z *ptr_my_struct_z = (void *)my_argument_z;
38 assert(ptr_my_struct_z);
39 if (NULL == ptr_my_struct_z->dest)
40 {
41 goto saida_amanda;
42 }
43
44 pedro_dprintf(-1, "bytes to extract %lld\n", ptr_my_struct_z->size_of_input_file_copy_z);
45
46 //aqui amor...
47
48 ptr_my_struct_z->dest_is_FILE_z = true;
49
50 ptr_my_struct_z->retvalue = zuncompress_sha512_k_mt_decoding_multi_thread_z__5(ptr_my_struct_z->input_file, NULL, ptr_my_struct_z);
51
52 if (119 == ptr_my_struct_z->internal_error_arp)
53 {
54 ptr_my_struct_z->retvalue = 119;
55 }
56 else if (6 == ptr_my_struct_z->internal_error_arp)
57 {
58 ptr_my_struct_z->retvalue = ptr_my_struct_z->internal_error_arp;
59 }
60 else
61 {
62 if (ptr_my_struct_z->retvalue)
63 {
64 pedro_dprintf(-1, "error 2 7 \n");
65 ptr_my_struct_z->retvalue = 7; //Decompression error
66 }
67 }
68
69saida_amanda:;
70
71 if (*(ptr_my_struct_z->intcancel))
72 {
73 ptr_my_struct_z->retvalue = 119; //User abort
74 }
75
76 if (ptr_my_struct_z->input_file)
77 {
78 fclose(ptr_my_struct_z->input_file);
79 }
80
81 if(ptr_my_struct_z->dest)
82 {
83 fclose(ptr_my_struct_z->dest);
84 ptr_my_struct_z->dest = NULL;
85 }
87 {
88 thread_return_value_z__5 = ptr_my_struct_z->retvalue;
89 }
90
91 //Sleep(2000);
92
93 free(my_argument_z);
94 _endthreadex(0);
95
96 return 27 + 51;
97}
void pedro_dprintf(int amanda_level, char *format,...)
Definition pedro.c:43
int thread_return_value_z__5
Definition zlib.c:307
int zuncompress_sha512_k_mt_decoding_multi_thread_z__5(FILE *source, FILE *dest, my_thread_struct_z *amanda)
unsigned __stdcall my_thread_function_v27__5(void *my_argument_z)
Definition gzip2__thread.c:35
#define assert(condition)
Definition lz4.c:273
const char * source
Definition lz4.h:808
char * dest
Definition lz4.h:806
Definition stdio_v3.h:23
int64_t size_of_input_file_copy_z
Definition stdio_v3.h:46
int retvalue
Definition stdio_v3.h:39
bool dest_is_FILE_z
Definition stdio_v3.h:32
int * intcancel
Definition gzip2_include.h:52
FILE * dest
Definition stdio_v3.h:26
int internal_error_arp
Definition stdio_v3.h:36
FILE * input_file
Definition stdio_v3.h:35
#define NULL
Definition getopt1.c:37