Go to the source code of this file.
◆ check_directory()
int check_directory |
( |
int |
force | ) |
|
Definition at line 80 of file cache.c.
91 if (check_iso &&
PATHCMP(check_iso,
".7z") == 0)
100 strcpy(compressed_7z_path,
".");
107 strcpy(check_iso,
".iso");
122 if (check_iso &&
PATHCMP(check_iso,
".iso") == 0)
char * strcat(char *DstString, const char *SrcString)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
#define sprintf(buf, format,...)
int __cdecl system(_In_opt_z_ const char *_Command)
static BOOL file_exists(const WCHAR *file_name)
static int check_dir(DOS_FS *fs, DOS_FILE **root, int dots)
char * strcpy(char *DstString, const char *SrcString)
◆ cleanable()
Definition at line 72 of file cache.c.
static void basename(LPCWSTR path, LPWSTR name)
int strcmp(const char *String1, const char *String2)
Referenced by check_directory().
◆ create_cache()
int create_cache |
( |
int |
force, |
|
|
int |
skipImageBase |
|
) |
| |
Definition at line 190 of file cache.c.
199 l2l_dbg(1,
"Apparently %s is not writable (mounted ISO?), using current dir\n",
tmp_name);
237 l2l_dbg(0,
"Creating cache ...");
257 if (*Fname && !skipImageBase)
260 fprintf(fw,
"%s|%s|%0x\n", Fname,
Line, (
unsigned int)ImageBase);
262 l2l_dbg(3,
"%s|%s|%0x, ERR=%d\n", Fname,
Line, (
unsigned int)ImageBase,
err);
ACPI_SIZE strlen(const char *String)
static void basename(LPCWSTR path, LPWSTR name)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int __cdecl system(_In_opt_z_ const char *_Command)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
static BOOL file_exists(const WCHAR *file_name)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
◆ read_cache()
Definition at line 157 of file cache.c.
179 l2l_dbg(2,
"** Create entry failed of: %s\n",
Line);
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
Referenced by main().