Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
zlib.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 <zlib.h>
#include "md5.h"

Data Structures

struct  _rspdata
 
struct  _ar_data
 

Macros

#define SHA512_DIGEST_LENGTH   64
 
#define uchar   unsigned char
 
#define uint   unsigned int
 
#define ushort   unsigned short
 
#define CHUNK   1638400
 

Typedefs

typedef struct _rspdata rspdata
 
typedef struct _ar_data ar_data
 

Functions

void pedro_dprintf (int amanda_level, char *format,...)
 
int zuncompress_sha512_k (char *input, char *output)
 
void * sha512_init_k (void)
 
void sha512_update_k (void *ctx, unsigned char *buffer_k, unsigned int len_k)
 
void sha512_final_k (void *ctx, unsigned char *array_digest_64_bytes)
 
int asciitowide_cry (const char *pUTF8, WCHAR *pUSC2, int nUSC2)
 
void __cdecl mprintf (char *format,...)
 
uint getpor (int max, uint fatia)
 
void dprintf (char *format,...)
 
int __stdcall execute ()
 
int start ()
 
int start2 ()
 
__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)
 
int lgetpor (__int64 max, __int64 fatia)
 
int zcompress (char *input, char *output, int levelin)
 
int zcompress_sha512_k (char *input, char *output, int levelin)
 
int zuncompress (char *input, char *output)
 

Variables

int unicodemode
 
uint pauseflag
 
uint cancelflag
 
int finished
 
int zlibpercent = 0
 

Macro Definition Documentation

◆ CHUNK

#define CHUNK   1638400

◆ SHA512_DIGEST_LENGTH

#define SHA512_DIGEST_LENGTH   64

◆ uchar

#define uchar   unsigned char

◆ uint

#define uint   unsigned int

◆ ushort

#define ushort   unsigned short

Typedef Documentation

◆ ar_data

typedef struct _ar_data ar_data

◆ rspdata

typedef struct _rspdata rspdata

Function Documentation

◆ asciitowide_cry()

int asciitowide_cry ( const char * pUTF8,
WCHAR * pUSC2,
int nUSC2 )

◆ dprintf()

void dprintf ( char * format,
... )

◆ execute()

int __stdcall execute ( )

◆ getpor()

uint getpor ( int max,
uint fatia )

◆ lffilesize()

__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

Parameters
szFileNameutf-8 encoded filename
Returns
__int64
Parameters
szFileNamethe utf-8 encoded input file
Returns
__int64
Parameters
szFileNameutf-8 encoded filename
Returns
__int64

simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)

Parameters
szFileNamethe utf-8 encoded input file
Returns
__int64

◆ lgetpor()

int lgetpor ( __int64 max,
__int64 fatia )

◆ mprintf()

void __cdecl mprintf ( char * format,
... )
extern

◆ pedro_dprintf()

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

◆ sha512_final_k()

void sha512_final_k ( void * ctx,
unsigned char * array_digest_64_bytes )

◆ sha512_init_k()

void * sha512_init_k ( void )

◆ sha512_update_k()

void sha512_update_k ( void * ctx,
unsigned char * buffer_k,
unsigned int len_k )

◆ start()

int start ( )

◆ start2()

int start2 ( )

◆ zcompress()

int zcompress ( char * input,
char * output,
int levelin )

◆ zcompress_sha512_k()

int zcompress_sha512_k ( char * input,
char * output,
int levelin )

◆ zuncompress()

int zuncompress ( char * input,
char * output )

◆ zuncompress_sha512_k()

int zuncompress_sha512_k ( char * input,
char * output )

Variable Documentation

◆ cancelflag

uint cancelflag
extern

◆ finished

int finished
extern

◆ pauseflag

uint pauseflag
extern

◆ unicodemode

int unicodemode
extern

◆ zlibpercent

int zlibpercent = 0