Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
bzip3_multi.c File Reference
#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 <stdbool.h>
#include <process.h>
#include "win64.h"
#include "bzlib.h"
#include "stdio_v2.h"
#include "bzip3_structs_z.h"
#include "bzip3_thread.c"

Macros

#define CHUNK   131072 /* to never change again */
 
#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 
#define AMANDA__SIZE_w   (32767)
 

Functions

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)
 
__int64 lffilesize_dl (const char *szFileName)
 default function to get the size of files with Unicode support
 
HANDLE lfopen_dl (const char *szFileName, char *pMode)
 
int createtempfilename_and_keep_z_fixed (char *path1, char *out_z, char *signature_z)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
__int64 lffilesizexcx (const char *szFileName)
 
HANDLE lfopen (const char *szFileName, char *pMode)
 
void lfclose (HANDLE hFile)
 
int createtempfilename_and_keep_z (char *path1, char *out_z, WCHAR *signature_z)
 
int __valquiriacall compress2_uncompress_k_real_mt_z_30 (char *input_z, char *output_z)
 

Variables

int64_t max_memory_size_k__p
 
bool is_multi_thread_z
 
char temp_files_z [129][2048]
 
char temp_path_z []
 
int finishedxcx
 
int intcancelxcx
 
int intpausexcx
 
int intstatusxcx
 
int n_threads_z
 
int thread_return_value_z
 
int64_t bytes__read_thread_z [129]
 
int64_t totalbytes_z
 
__INT32_OR_INT64 my_thread_handlexcx [129]
 
intcores_used_zxcx
 

Macro Definition Documentation

◆ AMANDA__SIZE

#define AMANDA__SIZE   ((32767 * 6) + 2)

The maximum size of an utf-8 encoded filename with the max limit of a file in Windows

◆ AMANDA__SIZE_w

#define AMANDA__SIZE_w   (32767)

The maximum size of Unicode characters in a path in Windows, Linux is 1024 characters as far I know

◆ AMANDA__SIZE_ww

#define AMANDA__SIZE_ww   ((32767 * 2) + 2)

◆ CHUNK

#define CHUNK   131072 /* to never change again */

Function Documentation

◆ compress2_uncompress_k_real_mt_z_30()

int __valquiriacall compress2_uncompress_k_real_mt_z_30 ( char * input_z,
char * output_z )

◆ createtempfilename_and_keep_z()

int createtempfilename_and_keep_z ( char * path1,
char * out_z,
WCHAR * signature_z )

It will just create a windows based temp file using the signature_z information

Parameters
path1the path where it will create
out_zthe utf-8 encoded temp file
signature_zthe 3 characters to be used as the initial data on the destination temp file
Returns
0 on error, 1 otherwise

◆ createtempfilename_and_keep_z_fixed()

int createtempfilename_and_keep_z_fixed ( char * path1,
char * out_z,
char * signature_z )

◆ lfclose()

void lfclose ( HANDLE hFile)

◆ lffilesize_dl()

__int64 lffilesize_dl ( const char * szFileName)

default function to get the size of files with Unicode support

Parameters
szFileNameutf-8 encoded file
Returns
__int64 the size of the file or 0

◆ lffilesizexcx()

__int64 lffilesizexcx ( const char * szFileName)

◆ lfopen()

HANDLE lfopen ( const char * szFileName,
char * pMode )

◆ lfopen_dl()

HANDLE lfopen_dl ( const char * szFileName,
char * pMode )

◆ pedro_dprintf()

void pedro_dprintf ( int amanda_level,
char * format,
... )

◆ utf8_2_wide_dl()

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)

Parameters
pUTF8
Returns
WCHAR*

Variable Documentation

◆ bytes__read_thread_z

int64_t bytes__read_thread_z[129]
extern

◆ cores_used_zxcx

int* cores_used_zxcx
extern

◆ finishedxcx

int finishedxcx
extern

◆ intcancelxcx

int intcancelxcx
extern

◆ intpausexcx

int intpausexcx
extern

◆ intstatusxcx

int intstatusxcx
extern

◆ is_multi_thread_z

bool is_multi_thread_z
extern

◆ max_memory_size_k__p

int64_t max_memory_size_k__p
extern

◆ my_thread_handlexcx

__INT32_OR_INT64 my_thread_handlexcx[129]
extern

◆ n_threads_z

int n_threads_z
extern

◆ temp_files_z

char temp_files_z[129][2048]
extern

◆ temp_path_z

char temp_path_z[]
extern

◆ thread_return_value_z

int thread_return_value_z
extern

◆ totalbytes_z

int64_t totalbytes_z
extern