81 WCHAR *ar_temp = (
void *)malloc(r_temp);
82 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
94 FILE_SHARE_READ,
NULL,
96 FILE_FLAG_BACKUP_SEMANTICS,
103 if (INVALID_HANDLE_VALUE != hFile)
107 &lpCreationTime___jumior,
108 &lpLastAccessTime_junior,
109 &lpLastWriteTime__junior))
112 SYSTEMTIME systime_arp = {0};
113 SYSTEMTIME systime_arp2 = {0};
115 FileTimeToSystemTime(
116 &lpLastWriteTime__junior,
118 SystemTimeToTzSpecificLocalTime(
NULL, &systime_arp2, &systime_arp);
121 Hour_k = systime_arp.wHour;
122 Year_k = systime_arp.wYear;
124 Day_k = systime_arp.wDay;
125 sprintf(timestamp_pk,
"%d-%02d-%02d %02d:%02d",
130 systime_arp.wMinute);
134 strcpy(timestamp_pk,
" ");
135 pedro_dprintf(2,
"Cannot access timestamp of %s", file_or_folder_to_process);
142 pedro_dprintf(2,
"%s: Cannot get filetime on folder\n", file_or_folder_to_process);
159 bool recurse_on_subfolders_amanda_s_smart_ape,
enum amanda__mode amanda_mode,
165 struct oi_amanda *oi_amanda_ptr_inicial = oi_amanda_ptr;
167 struct oi_amanda *to_call_free______amanda_s_smart_ape;
169 WIN32_FIND_DATAW ffd = {0};
176 static __time64_t s_arp_3;
194 strcpy(lpcszFolder, initial_path_amanda_s_smart_ape);
200 if (strlen(lpcszFolder))
202 if (
'\\' == lpcszFolder[strlen(lpcszFolder) - 1])
204 lpcszFolder[strlen(lpcszFolder) - 1] = 0;
209 strcpy(szDir, lpcszFolder);
210 strcat(szDir,
"\\*");
216loop_again_amanda_s_smart_ape:;
220 goto loop_again_amanda_s_smart_ape;
229 WCHAR *ar_temp = (
void *)malloc(r_temp);
230 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
241 if (oi_amanda_ptr == oi_amanda_ptr_inicial)
243 pedro_dprintf(-1,
"free forçado final on %x\n", oi_amanda_ptr);
245 oi_amanda_ptr =
NULL;
249 goto keep_running_amanda_s_smart_ape;
258 goto exit_me_forced_amanda_s_smart_ape;
313 if (recurse_on_subfolders_amanda_s_smart_ape)
336 strcpy(szDir, lpcszFolder);
352 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir) + strlen(
"\\*") + 3);
357 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir) + strlen(
"\\*") + 3);
376 strcat(szDir,
"\\*");
385 if (recurse_on_subfolders_amanda_s_smart_ape)
425 snprintf(temp_ar,
AMANDA__SIZE - 3,
"Skipping folder %s because the path is too large for windows", szDir);
464 if (recurse_on_subfolders_amanda_s_smart_ape)
471 if (recurse_on_subfolders_amanda_s_smart_ape)
473 goto loop_again_amanda_s_smart_ape;
520 strcpy(szDir_i, lpcszFolder);
521 strcat(szDir_i,
"\\");
535 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir_i) + 1);
540 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir_i) + 1);
573 bool achei_o_match =
false;
575 char *token, *
str, *tofree;
576 tofree =
str = strdup(my_str_literal);
581 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
582 strlen(my_copy_of_filename_ar), strlen(token));
595 achei_o_match =
false;
599 achei_o_match =
true;
639 WCHAR *ar_temp = (
void *)malloc(r_temp);
640 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
676#define THE_SIZE_I (1 << 17)
683 WCHAR *ar_temp = (
void *)malloc(r_temp);
684 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
705 while ((len_i = fread(buf_i, 1,
THE_SIZE_I, the_file_i)))
758 snprintf(temp_ar, 600,
"Skipping folder %s because the path is too large for windows", szDir);
781 bool achei_o_match =
false;
783 char *token, *
str, *tofree;
785 tofree =
str = strdup(my_str_literal);
790 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
791 strlen(my_copy_of_filename_ar), strlen(token));
805 achei_o_match =
false;
809 achei_o_match =
true;
819 if (strlen(file_or_folder_to_process___))
821 if (
'\\' != file_or_folder_to_process___[strlen(file_or_folder_to_process___) - 1])
823 strcat(file_or_folder_to_process___,
"\\");
845 bool achei_o_match =
false;
847 char *token, *
str, *tofree;
848 tofree =
str = strdup(my_str_literal);
853 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
854 strlen(my_copy_of_filename_ar), strlen(token));
868 achei_o_match =
false;
872 achei_o_match =
true;
914 entrada_again_smart_ape_from_amanda:;
918 goto entrada_again_smart_ape_from_amanda;
923exit_me_forced_amanda_s_smart_ape:;
931keep_running_amanda_s_smart_ape:;
933 if (oi_amanda_ptr_inicial != oi_amanda_ptr)
943 to_call_free______amanda_s_smart_ape = oi_amanda_ptr;
949 free(to_call_free______amanda_s_smart_ape->
entry______i);
965 free(to_call_free______amanda_s_smart_ape);
969 goto entrada_again_smart_ape_from_amanda;
#define __attribute__(unused_ric_since_2004)
Definition main_cr.c:84