![]() |
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 <process.h>
#include <stdbool.h>
#include "bzlib.h"
#include "md5.h"
#include "win64.h"
#include "bzip3_structs_z.h"
#include "bzip3_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 | SHA512_DIGEST_LENGTH 64 /*for your pleasure*/ |
#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 | yasmin_charlotte_pereira_dprintf (int amanda_level, char *format,...) |
__int64 | lffilesize_dl (const char *szFileName) |
default function to get the size of files with Unicode support | |
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) | |
int | bzip3uncompress_sha512_k_mt_z (char *input, char *output) |
void | pedro_dprintf (int amanda_level, char *format,...) |
void * | sha512_init_k_16 (void) |
void | sha512_update_k_16 (void *ctx, unsigned char *buffer_k, unsigned int len_k) |
void | sha512_final_k_16 (void *ctx, unsigned char *array_digest_64_bytes) |
int | bzip3uncompress_sha512_k (char *input, char *output) |
uint32_t | tuklib_cpucores_z (void) |
Borrowed from XZ compression, will return the number of cpu cores. | |
void | mprintf (char *format,...) |
uint | getpor (int max, uint fatia) |
void | dprintf (char *format,...) |
int __stdcall | execute () |
int | start () |
int | start2 () |
HANDLE | lfopen_dl (const char *szFileName, char *pMode) |
HANDLE | lfopen (const char *szFileName, char *pMode) |
void | lfclose (HANDLE hFile) |
__int64 | lfseek (HANDLE hFile, __int64 iDistance, int iMode) |
__int64 | lftell (HANDLE hFile) |
__int64 | lffilesizexcx (const char *szFileName) |
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 | bzip3compress (char *input, char *output, int levelin) |
int | createtempfilename_and_keep_z_fixed (char *path1, char *out_z, char *signature_z) |
unsigned __stdcall | my_thread_function (void *my_argument_z) |
int | bzip3compress_sha512_k (char *input, char *output, int levelin) |
int | bzip3uncompress (char *input, char *output) |
int __amandacall | get_multithread_progress (void) |
Variables | |
CRITICAL_SECTION | lpCriticalSection_charli_bzip3 |
int64_t | max_memory_size_k__p = 0 |
bool | is_multi_thread_z = false |
int | intpausexcx |
int | intcancelxcx |
char | temp_path_z [] |
int | finishedxcx = 0 |
int | intstatusxcx |
int | n_threads_z |
int | bzip3percent = 0 |
int64_t | totalbytes_z |
int64_t | bytes__read_thread_z [129] |
int64_t | offset_z__ [129] |
int64_t | size_of_input_file_z__ [129] |
__INT32_OR_INT64 | my_thread_handlexcx [129] |
char | temp_files_z [129][2048] |
int | thread_return_value_z |
int64_t | veja_z = 0 |
#define __amandacall __stdcall |
#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 SHA512_DIGEST_LENGTH 64 /*for your pleasure*/ |
#define uchar unsigned char |
#define uint unsigned int |
#define ulong unsigned long |
#define ushort unsigned short |
int bzip3uncompress | ( | char * | input, |
char * | output ) |
int bzip3uncompress_sha512_k | ( | char * | input, |
char * | output ) |
int bzip3uncompress_sha512_k_mt_z | ( | char * | input, |
char * | output ) |
int createtempfilename_and_keep_z_fixed | ( | char * | path1, |
char * | out_z, | ||
char * | signature_z ) |
void dprintf | ( | char * | format, |
... ) |
int __stdcall execute | ( | ) |
int __amandacall get_multithread_progress | ( | void | ) |
void lfclose | ( | HANDLE | hFile | ) |
__int64 lffilesize_dl | ( | const char * | szFileName | ) |
default function to get the size of files with Unicode support
szFileName | utf-8 encoded file |
__int64 lffilesizexcx | ( | const char * | szFileName | ) |
HANDLE lfopen | ( | const char * | szFileName, |
char * | pMode ) |
HANDLE lfopen_dl | ( | 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 ) |
void mprintf | ( | char * | format, |
... ) |
unsigned __stdcall my_thread_function | ( | void * | my_argument_z | ) |
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 |
... |
int setendofile | ( | HANDLE | file, |
__int64 | position ) |
void sha512_final_k_16 | ( | void * | ctx, |
unsigned char * | array_digest_64_bytes ) |
void * sha512_init_k_16 | ( | void | ) |
void sha512_update_k_16 | ( | void * | ctx, |
unsigned char * | buffer_k, | ||
unsigned int | len_k ) |
int start | ( | ) |
int start2 | ( | ) |
static uint32_t tuklib_cpucores_z | ( | void | ) |
Borrowed from XZ compression, will return the number of cpu cores.
Borrowed from XZ compression
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[129] |
int bzip3percent = 0 |
int finishedxcx = 0 |
|
extern |
|
extern |
|
extern |
CRITICAL_SECTION lpCriticalSection_charli_bzip3 |
int64_t max_memory_size_k__p = 0 |
__INT32_OR_INT64 my_thread_handlexcx[129] |
|
extern |
int64_t offset_z__[129] |
int64_t size_of_input_file_z__[129] |
char temp_files_z[129][2048] |
|
extern |
int thread_return_value_z |
int64_t totalbytes_z |
int64_t veja_z = 0 |