![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include "stdio_v2.h"
#include "stdio_v3.h"
#include <process.h>
#include "minilzo.h"
#include "win64.h"
#include "lz5_decoder_mt_z.c"
Data Structures | |
struct | _rspdata |
Macros | |
#define | uchar unsigned char |
#define | uint unsigned int |
#define | ulong unsigned long |
#define | ushort unsigned short |
#define | AMANDA__SIZE_ww ((32767 * 2) + 2) |
#define | AMANDA__SIZE ((32767 * 6) + 2) |
#define | AMANDA__SIZE_w (32767) |
#define | __amandacall __stdcall |
#define | CHUNK (32768 * 2 * 2) /* it is a good slice of data */ |
Typedefs | |
typedef struct _rspdata | rspdata |
Functions | |
void | pedro_dprintf2 (int amanda_level, char *format,...) |
pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry.... | |
WCHAR * | utf8_2_wide_dl (const char *pUTF8) |
my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025) | |
WCHAR * | amanda_utf8towide_1_v28 (char *pUTF8, WCHAR *ar_temp) |
wchar_t * | remove_permissive_name_m__no_oct (wchar_t *wname) |
WCHAR * | amanda_utf8towide_1_v27_no_oct (char *pUTF8) |
int | lz5uncompress_k_mt_z (char *input, char *output) |
void | pedro_dprintf (int amanda_level, char *format,...) |
int | lz5uncompress_k (char *input, char *output) |
void | mprintf (char *format,...) |
uint | getpor (int max, uint fatia) |
void | dprintf (char *format,...) |
int | start () |
int | start2 () |
HANDLE | lfopen (const char *szFileName, char *pMode) |
void | lfclose (HANDLE hFile) |
__int64 | lfseek (HANDLE hFile, __int64 iDistance, int iMode) |
__int64 | lftell (HANDLE hFile) |
__int64 | lffilesize (const char *szFileName) |
simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH) | |
unsigned long | lfread (void *pBuffer, unsigned long ulCount, HANDLE hFile) |
unsigned long | lfwrite (void *pBuffer, unsigned long ulCount, HANDLE hFile) |
int | setendofile (HANDLE file, __int64 position) |
int | lgetpor__6 (__int64 max, __int64 fatia) |
int | createtempfilename_and_keep_z__6 (char *path1, char *out_z, char *signature_z) |
unsigned int | rsp32 (unsigned int adler, const unsigned char *buf, unsigned int len) |
uint __amandacall | rsp32file_z (char *inputfile) |
void | yasmin_charlotte_pereira_dprintf (int amanda_level, char *format,...) |
int | lz5compress_k (char *input, char *output, int levelin) |
int | lz5uncompress (char *input, char *output) |
int __amandacall | get_multithread_progress__6 (void) |
Variables | |
bool | is_multi_thread_z__6 = false |
int64_t | max_memory_size_k__p__6 |
int | intpause__6 |
int | intcancel__6 |
char | temp_path_z__6 [] |
the temp path to be used... | |
int | finished__6 = 0 |
int | intstatus__6 |
int | n_threads_z__6 |
int | lzop2percent = 0 |
CRITICAL_SECTION | lpCriticalSection_charli_lz5 |
int64_t | totalbytes_z__6 |
int64_t | bytes__read_thread_z__6 [129] |
__INT32_OR_INT64 | my_thread_handle__6 [129] |
char | temp_files_z__6 [129][2048] |
int | thread_return_value_z__6 |
#define __amandacall __stdcall |
To convert an input wide string to a utf-8 encoded filename on return
pUSC2_maria | the wide string to be converted |
#define AMANDA__SIZE ((32767 * 6) + 2) |
The maximum size of an utf-8 encoded filename with the max limit of a file in Windows
#define AMANDA__SIZE_w (32767) |
The maximum size of Unicode characters in a path in Windows, Linux is 1024 characters as far I know
#define AMANDA__SIZE_ww ((32767 * 2) + 2) |
#define uchar unsigned char |
#define uint unsigned int |
#define ulong unsigned long |
#define ushort unsigned short |
WCHAR * amanda_utf8towide_1_v27_no_oct | ( | char * | pUTF8 | ) |
To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code
pUTF8 | the input utf-8 encoded filename |
WCHAR * amanda_utf8towide_1_v28 | ( | char * | pUTF8, |
WCHAR * | ar_temp ) |
To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code
pUTF8 | the input utf-8 encoded filename |
int createtempfilename_and_keep_z__6 | ( | char * | path1, |
char * | out_z, | ||
char * | signature_z ) |
void dprintf | ( | char * | format, |
... ) |
int __amandacall get_multithread_progress__6 | ( | void | ) |
void lfclose | ( | HANDLE | hFile | ) |
__int64 lffilesize | ( | const char * | szFileName | ) |
simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)
to get the file input size, with support to files above 2gb, and unicode support
szFileName | utf-8 encoded filename |
szFileName | the utf-8 encoded input file |
szFileName | utf-8 encoded filename |
simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)
szFileName | the utf-8 encoded input file |
HANDLE lfopen | ( | const char * | szFileName, |
char * | pMode ) |
unsigned long lfread | ( | void * | pBuffer, |
unsigned long | ulCount, | ||
HANDLE | hFile ) |
__int64 lfseek | ( | HANDLE | hFile, |
__int64 | iDistance, | ||
int | iMode ) |
__int64 lftell | ( | HANDLE | hFile | ) |
unsigned long lfwrite | ( | void * | pBuffer, |
unsigned long | ulCount, | ||
HANDLE | hFile ) |
int lgetpor__6 | ( | __int64 | max, |
__int64 | fatia ) |
int lz5uncompress | ( | char * | input, |
char * | output ) |
int lz5uncompress_k | ( | char * | input, |
char * | output ) |
int lz5uncompress_k_mt_z | ( | char * | input, |
char * | output ) |
void mprintf | ( | char * | format, |
... ) |
void pedro_dprintf | ( | int | amanda_level, |
char * | format, | ||
... ) |
void pedro_dprintf2 | ( | int | amanda_level, |
char * | format, | ||
... ) |
pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....
em brotli or brotli2
amanda_level | if equal or above 0 print the string |
format | printf based format |
... |
wchar_t * remove_permissive_name_m__no_oct | ( | wchar_t * | wname | ) |
To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code
pUTF8 | the input utf-8 encoded filename |
oi amor...
uint __amandacall rsp32file_z | ( | char * | inputfile | ) |
int setendofile | ( | HANDLE | file, |
__int64 | position ) |
int start | ( | ) |
int start2 | ( | ) |
WCHAR * utf8_2_wide_dl | ( | const char * | pUTF8 | ) |
my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025)
pUTF8 |
void yasmin_charlotte_pereira_dprintf | ( | int | amanda_level, |
char * | format, | ||
... ) |
int64_t bytes__read_thread_z__6[129] |
int finished__6 = 0 |
|
extern |
|
extern |
|
extern |
CRITICAL_SECTION lpCriticalSection_charli_lz5 |
int lzop2percent = 0 |
|
extern |
__INT32_OR_INT64 my_thread_handle__6[129] |
|
extern |
char temp_files_z__6[129][2048] |
|
extern |
the temp path to be used...
int thread_return_value_z__6 |
int64_t totalbytes_z__6 |