Rizin
unix-like reverse engineering framework and cli tools
|
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include "sdb.h"
#include "sdb_private.h"
Go to the source code of this file.
Macros | |
#define | MODE_ZERO '0' |
#define | MODE_DFLT 0 |
#define | BS 128 |
Functions | |
static void | terminate (RZ_UNUSED int sig) |
static void | write_null (void) |
static char * | slurp (FILE *f, size_t *sz) |
static int | sdb_grep_dump (const char *dbname, int fmt, bool grep, const char *expgrep) |
static int | sdb_grep (const char *db, int fmt, const char *grep) |
static int | sdb_dump (const char *db, int fmt) |
static int | insertkeys (Sdb *s, const char **args, int nargs, int mode) |
static int | createdb (const char *f, const char **args, int nargs) |
static int | showusage (int o) |
static int | showversion (void) |
static int | base64encode (void) |
static int | base64decode (void) |
static void | dbdiff_cb (const SdbDiff *diff, void *user) |
static bool | dbdiff (const char *a, const char *b) |
int | showcount (const char *db) |
int | main (int argc, const char **argv) |
Variables | |
static int | save = 0 |
static Sdb * | s = NULL |
static ut32 | options = SDB_OPTION_FS | SDB_OPTION_NOSTAMP |
|
static |
|
static |
Definition at line 210 of file main.c.
References args, eprintf, f, free(), i, in, len, cmd_descs_generate::nargs, NULL, options, s, sdb_config(), sdb_new(), sdb_sync(), sdb_text_load(), sdb_text_load_buf(), and slurp().
Referenced by main().
Definition at line 320 of file main.c.
References a, A, b, B, dbdiff_cb(), NULL, sdb_diff(), sdb_free(), and sdb_new().
Referenced by main().
Definition at line 297 of file main.c.
References sdb_diff_t::add, free(), malloc(), NULL, printf(), r, and sdb_diff_format().
Referenced by dbdiff().
Definition at line 184 of file main.c.
References args, free(), i, cmd_descs_generate::nargs, s, sdb_disk_insert(), sdb_query(), strdup(), and v.
Referenced by main().
Definition at line 340 of file main.c.
References arg(), argv, base64decode(), base64encode(), createdb(), dbdiff(), eprintf, free(), i, insertkeys(), setup::line, MODE_DFLT, MODE_ZERO, NULL, options, s, save, sdb_config(), sdb_dump(), sdb_grep(), sdb_new(), SDB_OPTION_JOURNAL, sdb_query(), showcount(), showusage(), showversion(), SIGHUP, signal, slurp(), terminate(), and write_null().
Definition at line 180 of file main.c.
References NULL, and sdb_grep_dump().
Referenced by main().
Definition at line 141 of file main.c.
References free(), k, MODE_ZERO, NULL, options, printf(), SDB_CDB_MAX_KEY, sdb_config(), sdb_dump_begin(), sdb_dump_dupnext(), sdb_free(), sdb_new(), v, and write_null().
Referenced by sdb_dump(), and sdb_grep().
Definition at line 329 of file main.c.
References d, NULL, printf(), s, sdb_free(), sdb_new(), and sdb_stats().
Referenced by main().
|
static |
|
static |
Definition at line 37 of file main.c.
References blocksize, BS, buf_len, buf_size, calloc(), f, free(), len, memset(), NULL, realloc(), and autogen_x86imm::tmp.
Referenced by base64decode(), base64encode(), createdb(), and main().
Definition at line 18 of file main.c.
References test-lz4-list::exit, NULL, s, save, sdb_free(), and sdb_sync().
Referenced by main().
|
static |
|
static |
Definition at line 16 of file main.c.
Referenced by createdb(), main(), and sdb_grep_dump().
Definition at line 15 of file main.c.
Referenced by createdb(), handle_socket(), insertkeys(), main(), rz_main_version_print(), showcount(), and terminate().
|
static |
Definition at line 14 of file main.c.
Referenced by gdb_to_rz_profile(), main(), rz_cons_get_cur_line(), rz_core_seek_align(), rz_core_seek_analysis_bb(), rz_core_seek_base(), rz_core_seek_delta(), rz_core_seek_next(), rz_core_seek_opt(), rz_core_seek_prev(), seek_check_save(), and terminate().