![]() |
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 "aline_definitive_header_2_.h"Go to the source code of this file.
Macros | |
| #define | uchar unsigned char |
| #define | uint unsigned int |
| #define | ushort unsigned short |
| #define | MYCAST int |
| #define | __attribute__(unused) |
| #define | AMANDA__SIZE ((32767 * 6) + 2) |
| #define | AMANDA__SIZE_w (32767) |
Typedefs | |
| typedef void * | myfile |
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 * | amanda_asciitowide_1_v27 (char *pUTF8) |
| void | pedro_dprintf (int amanda_level, char *format,...) |
| __int64 | lffilesize_dl (const char *szFileName) |
| default function to get the size of files with Unicode support | |
| uint __stdcall | rspcompress (char *inputfile, char *outfile) |
| int | zcompress_sha512_k (char *input, char *output, int levelin) |
| uint __stdcall | rspuncompress (uchar *outfile, uchar *outfile2) |
| int | zuncompress (char *input, char *output) |
| int | zcompress (char *input, char *output, int level) |
| int | utf8towide (const char *pUTF8, WCHAR *pUSC2, int nUSC2) |
| int | gzclose (myfile file) |
| myfile | gzopen (char *path_now_as_utf8, char *mode) |
| myfile | gzopen_w (WCHAR *path_now_as_utf8, char *mode) |
| int | gzread (myfile file, char *buf, uint len) |
| char * | gzerror (myfile file, int *errnum) |
| int | gzwrite (myfile file, const char *buf, uint len) |
| float | inittimer (uint comando) |
| void | dprintf (char *format,...) |
| uint __stdcall | rspvalidatefile (uchar *outfile2) |
| int __stdcall | startapi_xcx_gz (int parameter) |
| uint | getval (int max, uint por) |
| uint | getmax (int por, uint fatia) |
| uint __stdcall | getporcentagem () |
| uint __stdcall | tcompress (char *inputfile, char *outfile) |
| uint __stdcall | tuncompress (uchar *outfile, uchar *outfile2) |
| uint __stdcall | tcompressgzip2 (char *inputfile, char *outfile) |
| uint __stdcall | tcompressgzip2_sha512_k (char *inputfile, char *outfile) |
| uint __stdcall | tuncompressgzip2 (uchar *outfile, uchar *outfile2) |
| uint __stdcall | tcompressgzip2_utf8_k (char *inputfile, char *outfile) |
| uint __stdcall | tuncompressgzip2_utf8_k (uchar *outfile, uchar *outfile2) |
| int __stdcall | startapi_xcx_gz (__attribute__((unused)) int parameter) |
| int __stdcall | getintret () |
| int __stdcall | getfinished () |
| int __stdcall | setfinished (uint newvalue) |
| int __stdcall | interface1_xcx_gz (int argumento1, int argumento2, int argumento3, __attribute__((unused)) int argumento4) |
| void | mprintf2 (char *format,...) |
| int __stdcall | About () |
| int __stdcall | WaitExecution (int val) |
| void __stdcall | PauseExecution () |
| void __stdcall | ResumeExecution () |
| void __stdcall | CancelExecution () |
| int __stdcall | Compress (char *Inputfile, char *OutPutFile, int CompressionLevel) |
| int __stdcall | CompressGzip2 (char *Inputfile, char *OutPutFile, int CompressionLevel) |
| int __stdcall | CompressGzip2_SHA512_k (char *Inputfile, char *OutPutFile, int CompressionLevel) |
| int __stdcall | CompressGzip_utf8_k (char *Inputfile, char *OutPutFile, int CompressionLevel) |
| int __stdcall | GetFinished () |
| int __stdcall | GetReturnValue () |
| int __stdcall | GetProgress () |
| int __stdcall | Uncompress (char *Inputfile, char *OutPutFile) |
| int __stdcall | UncompressGzip2 (char *Inputfile, char *OutPutFile) |
| int __stdcall | UncompressGzip_utf8_k (char *Inputfile, char *OutPutFile) |
| Funtion to uncompress a standard gzip file. | |
Variables | |
| int | unicodemode = 0 |
| uint | compressionlevel = 6 |
| uint | intstatus = 0 |
| int | erroglobal = 0 |
| int | isgzip2 = 0 |
| int | zlibpercent |
| uchar | intoutfile [AMANDA__SIZE] |
| uchar | intinputfile [AMANDA__SIZE] |
| uint | comando |
| uint | pauseflag |
| uint | cancelflag |
| uint | filesize |
| uint | fileread |
| uint | intret |
| uint | finished |
| int | wait = 0 |
| #define __attribute__ | ( | unused | ) |
| #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 MYCAST int |
| #define uchar unsigned char |
| #define uint unsigned int |
| #define ushort unsigned short |
| typedef void* myfile |
| int __stdcall About | ( | ) |
| WCHAR * amanda_asciitowide_1_v27 | ( | char * | pUTF8 | ) |
| void __stdcall CancelExecution | ( | ) |
| Inputfile | |
| OutPutFile | |
| CompressionLevel |
0 - No error
7 - Cannot open input file
8 - Cannot open output file
12 - Invalid compression level
13 - Already running
19 - User cancel
| void dprintf | ( | char * | format, |
| ... ) |
| int __stdcall GetFinished | ( | ) |
| int __stdcall getfinished | ( | ) |
| int __stdcall getintret | ( | ) |
| uint __stdcall getporcentagem | ( | ) |
| int __stdcall GetProgress | ( | ) |
| static int __stdcall GetReturnValue | ( | void | ) |
| myfile gzopen | ( | char * | path_now_as_utf8, |
| char * | mode ) |
| myfile gzopen_w | ( | WCHAR * | path_now_as_utf8, |
| char * | mode ) |
| float inittimer | ( | uint | comando | ) |
| int __stdcall interface1_xcx_gz | ( | int | argumento1, |
| int | argumento2, | ||
| int | argumento3, | ||
| __attribute__((unused)) int | argumento4 ) |
| __int64 lffilesize_dl | ( | const char * | szFileName | ) |
default function to get the size of files with Unicode support
| szFileName | utf-8 encoded file |
| void mprintf2 | ( | char * | format, |
| ... ) |
| void __stdcall PauseExecution | ( | ) |
| 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 |
| ... |
| void __stdcall ResumeExecution | ( | ) |
| uint __stdcall rspcompress | ( | char * | inputfile, |
| char * | outfile ) |
| int __stdcall startapi_xcx_gz | ( | __attribute__((unused)) int | parameter | ) |
| uint __stdcall tcompress | ( | char * | inputfile, |
| char * | outfile ) |
| uint __stdcall tcompressgzip2 | ( | char * | inputfile, |
| char * | outfile ) |
| uint __stdcall tcompressgzip2_sha512_k | ( | char * | inputfile, |
| char * | outfile ) |
| uint __stdcall tcompressgzip2_utf8_k | ( | char * | inputfile, |
| char * | outfile ) |
| int __stdcall Uncompress | ( | char * | Inputfile, |
| char * | OutPutFile ) |
| int __stdcall UncompressGzip2 | ( | char * | Inputfile, |
| char * | OutPutFile ) |
| int __stdcall UncompressGzip_utf8_k | ( | char * | Inputfile, |
| char * | OutPutFile ) |
Funtion to uncompress a standard gzip file.
| Inputfile | utf-8 encoded input file |
| OutPutFile | utf-8 encoded output file |
0 - No error
10 - Cannot open output file
11 - Cannot open input file
15 - Internal zlib error
19 - User cancel
| int zuncompress | ( | char * | input, |
| char * | output ) |
| uint cancelflag |
| uint comando |
| uint compressionlevel = 6 |
| int erroglobal = 0 |
| uint fileread |
| uint filesize |
| uint finished |
| uchar intinputfile[AMANDA__SIZE] |
| uchar intoutfile[AMANDA__SIZE] |
| uint intret |
| uint intstatus = 0 |
| int isgzip2 = 0 |
| uint pauseflag |
| int unicodemode = 0 |
| int wait = 0 |
|
extern |