Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | pex_time |
Macros | |
#define | basename basename_cannot_be_used_without_a_prototype |
#define | ACONCAT(ACONCAT_PARAMS) |
#define | XNEW(T) ((T *)xmalloc(sizeof(T))) |
#define | XCNEW(T) ((T *)xcalloc(1, sizeof(T))) |
#define | XDELETE(P) free((void *)(P)) |
#define | XNEWVEC(T, N) ((T *)xmalloc(sizeof(T) * (N))) |
#define | XCNEWVEC(T, N) ((T *)xcalloc((N), sizeof(T))) |
#define | XRESIZEVEC(T, P, N) ((T *)xrealloc((void *)(P), sizeof(T) * (N))) |
#define | XDELETEVEC(P) free((void *)(P)) |
#define | XNEWVAR(T, S) ((T *)xmalloc((S))) |
#define | XCNEWVAR(T, S) ((T *)xcalloc(1, (S))) |
#define | XRESIZEVAR(T, P, S) ((T *)xrealloc((P), (S))) |
#define | XOBNEW(O, T) ((T *)obstack_alloc((O), sizeof(T))) |
#define | XOBFINISH(O, T) ((T)obstack_finish((O))) |
#define | _hex_array_size 256 |
#define | _hex_bad 99 |
#define | hex_p(c) (hex_value(c) != _hex_bad) |
#define | hex_value(c) ((unsigned int)_hex_value[(unsigned char)(c)]) |
#define | PEX_RECORD_TIMES 0x1 |
#define | PEX_USE_PIPES 0x2 |
#define | PEX_SAVE_TEMPS 0x4 |
#define | PEX_LAST 0x1 |
#define | PEX_SEARCH 0x2 |
#define | PEX_SUFFIX 0x4 |
#define | PEX_STDERR_TO_STDOUT 0x8 |
#define | PEX_BINARY_INPUT 0x10 |
#define | PEX_BINARY_OUTPUT 0x20 |
#define | PEXECUTE_FIRST 1 |
#define | PEXECUTE_LAST 2 |
#define | PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST) |
#define | PEXECUTE_SEARCH 4 |
#define | PEXECUTE_VERBOSE 8 |
#define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
#define | alloca(x) C_alloca(x) |
#define | USE_C_ALLOCA 1 |
#define | C_ALLOCA 1 |
#define | ASTRDUP(X) |
Variables | |
char * | libiberty_concat_ptr |
const unsigned char | _hex_value [_hex_array_size] |
const char * | libiberty_optr |
char * | libiberty_nptr |
unsigned long | libiberty_len |
#define _hex_array_size 256 |
Definition at line 343 of file libiberty.h.
#define _hex_bad 99 |
Definition at line 344 of file libiberty.h.
#define ACONCAT | ( | ACONCAT_PARAMS | ) |
Definition at line 164 of file libiberty.h.
Definition at line 593 of file libiberty.h.
Definition at line 574 of file libiberty.h.
#define ASTRDUP | ( | X | ) |
Definition at line 601 of file libiberty.h.
#define basename basename_cannot_be_used_without_a_prototype |
Definition at line 109 of file libiberty.h.
#define C_ALLOCA 1 |
Definition at line 597 of file libiberty.h.
Definition at line 350 of file libiberty.h.
#define PEX_BINARY_INPUT 0x10 |
Definition at line 394 of file libiberty.h.
#define PEX_BINARY_OUTPUT 0x20 |
Definition at line 401 of file libiberty.h.
#define PEX_LAST 0x1 |
Definition at line 381 of file libiberty.h.
#define PEX_RECORD_TIMES 0x1 |
Definition at line 355 of file libiberty.h.
#define PEX_SAVE_TEMPS 0x4 |
Definition at line 361 of file libiberty.h.
#define PEX_SEARCH 0x2 |
Definition at line 384 of file libiberty.h.
#define PEX_STDERR_TO_STDOUT 0x8 |
Definition at line 390 of file libiberty.h.
#define PEX_SUFFIX 0x4 |
Definition at line 387 of file libiberty.h.
#define PEX_USE_PIPES 0x2 |
Definition at line 358 of file libiberty.h.
#define PEXECUTE_FIRST 1 |
Definition at line 554 of file libiberty.h.
#define PEXECUTE_LAST 2 |
Definition at line 555 of file libiberty.h.
#define PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST) |
Definition at line 556 of file libiberty.h.
#define PEXECUTE_SEARCH 4 |
Definition at line 557 of file libiberty.h.
#define PEXECUTE_VERBOSE 8 |
Definition at line 558 of file libiberty.h.
#define USE_C_ALLOCA 1 |
Definition at line 595 of file libiberty.h.
Definition at line 326 of file libiberty.h.
Definition at line 321 of file libiberty.h.
Definition at line 328 of file libiberty.h.
Definition at line 325 of file libiberty.h.
Definition at line 338 of file libiberty.h.
Definition at line 334 of file libiberty.h.
Definition at line 327 of file libiberty.h.
char** buildargv | ( | const char * | ) |
void* C_alloca | ( | size_t | ) |
char* choose_temp_base | ( | void | ) |
char* concat | ( | const char * | , |
... | |||
) |
char* concat_copy | ( | char * | , |
const char * | , | ||
... | |||
) |
char* concat_copy2 | ( | const char * | , |
... | |||
) |
char** dupargv | ( | char ** | ) |
int errno_max | ( | void | ) |
void freeargv | ( | char ** | ) |
long get_run_time | ( | void | ) |
char* getpwd | ( | void | ) |
void hex_init | ( | void | ) |
char* lrealpath | ( | const char * | ) |
char* make_temp_file | ( | const char * | ) |
void expandargv PARAMS | ( | (int *, char ***) | ) |
void pex_free | ( | struct pex_obj * | ) |
FILE* pex_input_pipe | ( | struct pex_obj * | obj, |
int | binary | ||
) |
const char* pex_one | ( | int | flags, |
const char * | executable, | ||
char *const * | argv, | ||
const char * | pname, | ||
const char * | outname, | ||
const char * | errname, | ||
int * | status, | ||
int * | err | ||
) |
FILE* pex_read_output | ( | struct pex_obj * | , |
int | binary | ||
) |
const char* pex_run | ( | struct pex_obj * | obj, |
int | flags, | ||
const char * | executable, | ||
char *const * | argv, | ||
const char * | outname, | ||
const char * | errname, | ||
int * | err | ||
) |
FILE* pex_write_input | ( | struct pex_obj * | obj, |
int | binary | ||
) |
int pexecute | ( | const char * | , |
char *const * | , | ||
const char * | , | ||
const char * | , | ||
char ** | , | ||
char ** | , | ||
int | |||
) |
double physmem_available | ( | void | ) |
double physmem_total | ( | void | ) |
char* reconcat | ( | char * | , |
const char * | , | ||
... | |||
) |
int signo_max | ( | void | ) |
Referenced by count_flags_in_space(), ds_print_cycles(), ds_print_trace(), ds_show_functions(), foreach_space_cb(), process_cabinet(), rz_core_debug_plugin_print(), rz_core_debug_plugins_print(), rz_core_spaces_print(), rz_flag_get_by_spaces(), rz_serialize_spaces_load(), rz_serialize_spaces_save(), unset_flagspace(), and xrefs_graph().
void unlock_std_streams | ( | void | ) |
void unlock_stream | ( | FILE * | ) |
int xatexit | ( | void(*)(void) | fn | ) |
void xexit | ( | int | status | ) |
void* xmalloc | ( | size_t | ) |
void xmalloc_failed | ( | size_t | ) |
void xmalloc_set_program_name | ( | const char * | ) |
void* xrealloc | ( | void * | ptr, |
size_t | size | ||
) |
Definition at line 25 of file util.c.
References assert(), free(), message_fatal(), NULL, p, and realloc().
Referenced by read_name().
char* xstrdup | ( | const char * | src | ) |
Definition at line 48 of file util.c.
References assert(), dest, memcpy(), NULL, src, and xmalloc.
Referenced by parse_environment(), parse_options(), and suffix_set().
char* xstrerror | ( | int | ) |
|
extern |
|
extern |
|
extern |
|
extern |