#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aux_tools.h"
Functions | |
char * | tsk_error_get () |
Return the string with the current error message. | |
void | tsk_error_print (FILE *hFile) |
Print the current error message to a file. | |
void | tsk_error_reset () |
Variables | |
char * | progname = "unknown" |
int | tsk_verbose = 0 |
uint32_t | tsk_errno = 0 |
char | tsk_errstr [TSK_ERRSTR_L] |
char | tsk_errstr2 [TSK_ERRSTR_L] |
char | tsk_errstr_print [TSK_ERRSTR_PR_L] |
const char * | tsk_err_aux_str [TSK_ERR_IMG_MAX] |
const char * | tsk_err_img_str [TSK_ERR_IMG_MAX] |
const char * | tsk_err_mm_str [TSK_ERR_MM_MAX] |
const char * | tsk_err_fs_str [TSK_ERR_FS_MAX] |
const char * | tsk_err_hdb_str [TSK_ERR_HDB_MAX] |
char* tsk_error_get | ( | ) |
Return the string with the current error message.
The string does not end with a newline and it should not be freed.
void tsk_error_print | ( | FILE * | hFile | ) |
Print the current error message to a file.
hFile | File to print message to |
const char* tsk_err_aux_str[TSK_ERR_IMG_MAX] |
Initial value:
{ "Insufficient memory", "" }
const char* tsk_err_fs_str[TSK_ERR_FS_MAX] |
Initial value:
{ "Cannot determine file system type", "Unsupported file system type", "Function not supported", "Invalid walk range", "Error reading image file", "Invalid argument", "Invalid block address", "Invalid metadata address", "Error in metadata structure", "Invalid magic value", "Error extracting file from image", "Error writing data", "Error converting Unicode", "Error recovering deleted file", "General file system error", "File system is corrupt" }
const char* tsk_err_hdb_str[TSK_ERR_HDB_MAX] |
Initial value:
{ "Cannot determine hash database type", "Unsupported hash database type", "Error reading hash database file", "Error reading hash database index", "Invalid argument", "Error writing data", "Error creating file", "Error deleting file", "Missing file", "Error creating process", "Error opening file", "Corrupt hash database" }
const char* tsk_err_img_str[TSK_ERR_IMG_MAX] |
Initial value:
{ "Missing image file names", "Invalid image offset", "Cannot determine image type", "Unsupported image type", "Error opening image file", "Error stat(ing) image file", "Error seeking in image file", "Error reading image file", "Read offset too large for image file", "Invalid image format layer sequence", "Invalid magic value", "Error writing data", }
const char* tsk_err_mm_str[TSK_ERR_MM_MAX] |
Initial value:
{ "Cannot determine partition type", "Unsupported partition type", "Error reading image file", "Invalid magic value", "Invalid walk range", "Invalid buffer size", "Invalid sector address" }