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 false   0
 
#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 

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 * 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)
 
WCHAR * amanda_utf8towide_1_v28 (char *pUTF8, WCHAR *ar_temp)
 
void __cdecl dprintf (char *format,...)
 
HANDLE lfopen (const char *szFileName, char *pMode)
 
void lfclose (HANDLE hFile)
 
__int64 lfseek (HANDLE hFile, __int64 iDistance, int iMode)
 
__int64 lftell (HANDLE hFile)
 
__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)
 
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)
 
__int64 lffilesizeW (const WCHAR *szFileName)
 

Macro Definition Documentation

◆ AMANDA__SIZE_ww

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

◆ false

#define false   0

Function Documentation

◆ 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)

◆ 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)

Parameters
szFileNameutf-8 encoded filename
Returns
__int64

◆ lffilesizeW()

__int64 lffilesizeW ( const WCHAR * szFileName)

◆ lfopen()

HANDLE lfopen ( 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
...

◆ 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*