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

Macros

#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define fseek   _fseeki64
 
#define ftell   _ftelli64
 
#define AMANDA_SIZE__   (1 << 16) * 2
 

Functions

int size_of_WCHAR_mem_r (char *in_string)
 
wchar_t * permissive_name_m_ (const wchar_t *wname, WCHAR *ar_temp)
 
WCHAR * amanda_asciitowide_1_ (char *pUTF8, WCHAR *ar_temp)
 
void trocadordebackslashfrente (char *path)
 
void trocadordebackslashtras (char *path)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
__int64 _lseeki64 (int fd, __int64 offset, int origin)
 
__int64 _telli64 (int handle)
 
void dump_diretory_VAL_arp (VAL_data *my_VAL_data)
 
int dump_regular_file_VAL_arp (int fd_arp, VAL_data *my_VAL_data)
 

Variables

bool first_pass_VAL_p
 
bool enable_encryption_arp_
 
enum z_encryption_method internal_encryption_z_method
 
enum mode_is_include_or_exclude mode_is_include_or_exclude__
 
bool recurse_on_subfolders_arp
 
char archive_name_array_filename []
 
char global_patern_ar []
 
int fatal_exit_k
 
int archive
 
int64_t ricrdo_bytes_read
 
char error_message_k []
 
char ready_to_save_char_m_ [AMANDA__SIZE]
 
WCHAR ready_to_save_WCHAR_m_ [AMANDA__SIZE_w]
 

Macro Definition Documentation

◆ AMANDA__SIZE_w

#define AMANDA__SIZE_w   (32767)

◆ AMANDA__SIZE_ww

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

◆ AMANDA_SIZE__

#define AMANDA_SIZE__   (1 << 16) * 2

◆ fseek

#define fseek   _fseeki64

◆ ftell

#define ftell   _ftelli64

Function Documentation

◆ _lseeki64()

__int64 _lseeki64 ( int fd,
__int64 offset,
int origin )

◆ _telli64()

__int64 _telli64 ( int handle)

◆ amanda_asciitowide_1_()

WCHAR * amanda_asciitowide_1_ ( 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

Parameters
pUTF8the input utf-8 encoded filename
Returns
the static allocated WCHAR array with the filename as wide string

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

Parameters
pUTF8the input utf-8 encoded filename
Returns
the static allocated WCHAR array with the filename as wide string

◆ dump_diretory_VAL_arp()

void dump_diretory_VAL_arp ( VAL_data * my_VAL_data)

VAL based function, it will write information about
a folder to the destination VAL file

Parameters
my_VAL_datathe struct with the VAL information

◆ dump_regular_file_VAL_arp()

int dump_regular_file_VAL_arp ( int fd_arp,
VAL_data * my_VAL_data )

VAL based function, it will write to the destination VAL file with the information on the my_VAL_data struct

Parameters
my_VAL_datathis struct has all the information required to write the VAL information on the destination file
Returns
always 0, the error information and description goes in the fatal_exit_k and error_message_k variables

oi

◆ pedro_dprintf()

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

◆ permissive_name_m_()

wchar_t * permissive_name_m_ ( const wchar_t * wname,
WCHAR * ar_temp )

To make the path wide mode aware, stolen from libarchive

15/september/2021 10:14, last visit 16/09/2021 22:36 by bhond...

◆ size_of_WCHAR_mem_r()

int size_of_WCHAR_mem_r ( char * in_string)

◆ trocadordebackslashfrente()

void trocadordebackslashfrente ( char * path)

It will convert '\' to '/' on the given string

◆ trocadordebackslashtras()

void trocadordebackslashtras ( char * path)

It will replace character '/' with '\' on the given path, very useful to programmers converting code from Unix to Windows... not using cygwin

Parameters
paththe path to replace the character
Returns
void

Variable Documentation

◆ archive

int archive
extern

◆ archive_name_array_filename

char archive_name_array_filename[]
extern

◆ enable_encryption_arp_

bool enable_encryption_arp_
extern

◆ error_message_k

char error_message_k[]
extern

◆ fatal_exit_k

int fatal_exit_k
extern

◆ first_pass_VAL_p

bool first_pass_VAL_p
extern

◆ global_patern_ar

char global_patern_ar[]
extern

◆ internal_encryption_z_method

enum z_encryption_method internal_encryption_z_method
extern

◆ mode_is_include_or_exclude__

enum mode_is_include_or_exclude mode_is_include_or_exclude__
extern

◆ ready_to_save_char_m_

char ready_to_save_char_m_[AMANDA__SIZE]

◆ ready_to_save_WCHAR_m_

WCHAR ready_to_save_WCHAR_m_[AMANDA__SIZE_w]

◆ recurse_on_subfolders_arp

bool recurse_on_subfolders_arp
extern

◆ ricrdo_bytes_read

int64_t ricrdo_bytes_read
extern