Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
longfile.c File Reference
#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <assert.h>

Macros

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

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)
 
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....
 
void __cdecl dprintf (char *format,...)
 
WCHAR * amanda_utf8towide_1_v28 (char *pUTF8, WCHAR *ar_temp)
 
wchar_t * permissive_name_m_v28 (const wchar_t *wname, WCHAR *ar_temp)
 
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)
 
WCHAR * amanda_utf8towide_1_v27_no_october_2021 (const char *pUTF8)
 
HANDLE lfopen_dl (const char *szFileName, char *pMode)
 

Variables

int unicodemode = 0
 

Macro Definition Documentation

◆ AMANDA__SIZE_ww

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

Function Documentation

◆ amanda_utf8towide_1_v27_no_october_2021()

WCHAR * amanda_utf8towide_1_v27_no_october_2021 ( const char * pUTF8)

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

◆ amanda_utf8towide_1_v28()

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

◆ dprintf()

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

◆ lfclose()

void lfclose ( HANDLE hFile)

◆ lffilesizexcx()

__int64 lffilesizexcx ( const char * szFileName)

◆ lfopen()

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

◆ lfopen_dl()

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

◆ lfread()

unsigned long lfread ( void * pBuffer,
unsigned long ulCount,
HANDLE hFile )

◆ lfseek()

__int64 lfseek ( HANDLE hFile,
__int64 iDistance,
int iMode )

◆ lftell()

__int64 lftell ( HANDLE hFile)

◆ lfwrite()

unsigned long lfwrite ( void * pBuffer,
unsigned long ulCount,
HANDLE hFile )

◆ pedro_dprintf2()

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

Parameters
amanda_levelif equal or above 0 print the string
formatprintf based format
...

◆ permissive_name_m_v28()

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

◆ setendofile()

int setendofile ( HANDLE file,
__int64 position )

◆ 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

◆ unicodemode

int unicodemode = 0
extern