Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_userconf.h>
#include "file.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <wctype.h>
#include <wchar.h>
Go to the source code of this file.
Macros | |
#define | OCTALIFY(n, o) |
Functions | |
static int | file_vprintf (RzMagic *ms, const char *fmt, va_list ap) |
int | file_printf (RzMagic *ms, const char *fmt,...) |
static void | file_error_core (RzMagic *ms, int error, const char *f, va_list va, ut32 lineno) |
void | file_error (RzMagic *ms, int error, const char *f,...) |
void | file_magerror (RzMagic *ms, const char *f,...) |
void | file_oomem (RzMagic *ms, size_t len) |
void | file_badseek (RzMagic *ms) |
void | file_badread (RzMagic *ms) |
int | file_buffer (RzMagic *ms, int fd, const char *inname, const void *buf, size_t nb) |
int | file_reset (RzMagic *ms) |
const char * | file_getbuffer (RzMagic *ms) |
int | file_check_mem (RzMagic *ms, unsigned int level) |
void file_badread | ( | RzMagic * | ms | ) |
void file_badseek | ( | RzMagic * | ms | ) |
Definition at line 158 of file funcs.c.
References file_error().
Definition at line 166 of file funcs.c.
References fd, file_ascmagic(), file_is_tar(), file_printf(), file_softmagic(), file_zmagic(), regress::m, and mime.
Definition at line 136 of file funcs.c.
References error(), f, and file_error_core().
Referenced by file_badread(), file_badseek(), file_oomem(), file_reset(), and file_vprintf().
|
static |
Definition at line 116 of file funcs.c.
References error(), f, file_printf(), file_vprintf(), free(), and NULL.
Referenced by file_error(), and file_magerror().
const char* file_getbuffer | ( | RzMagic * | ms | ) |
void file_magerror | ( | RzMagic * | ms, |
const char * | f, | ||
... | |||
) |
void file_oomem | ( | RzMagic * | ms, |
size_t | len | ||
) |
Definition at line 154 of file funcs.c.
References file_error(), and len.
Referenced by file_check_mem(), and file_getbuffer().
Definition at line 102 of file funcs.c.
References file_vprintf().
Referenced by file_buffer(), and file_error_core().
int file_reset | ( | RzMagic * | ms | ) |
Definition at line 44 of file funcs.c.
References buflen, file_error(), free(), len, malloc(), memcpy(), newstr(), obuflen, out, strdup(), and vsnprintf.
Referenced by file_error_core(), and file_printf().