Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
#include "sdb.h"
Go to the source code of this file.
Classes | |
struct | StrBuf |
struct | ForeachListUser |
Macros | |
#define | out_concat(x) |
Functions | |
static StrBuf * | strbuf_new (void) |
static StrBuf * | strbuf_append (StrBuf *sb, const char *str, const int nl) |
static StrBuf * | strbuf_free (StrBuf *sb) |
RZ_API int | sdb_queryf (Sdb *s, const char *fmt,...) |
RZ_API char * | sdb_querysf (Sdb *s, char *buf, size_t buflen, const char *fmt,...) |
static bool | foreach_list_cb (void *user, const char *k, const char *v) |
static void | walk_namespace (StrBuf *sb, char *root, int left, char *p, SdbNs *ns, int encode) |
RZ_API char * | sdb_querys (Sdb *r, char *buf, size_t len, const char *_cmd) |
RZ_API int | sdb_query (Sdb *s, const char *cmd) |
RZ_API int | sdb_query_lines (Sdb *s, const char *cmd) |
static char * | slurp (const char *file) |
RZ_API int | sdb_query_file (Sdb *s, const char *file) |
#define out_concat | ( | x | ) |
Definition at line 91 of file query.c.
References ForeachListUser::encode, free(), k, setup::line, malloc(), memcpy(), NULL, ForeachListUser::out, ForeachListUser::root, root, sdb_decode(), strbuf_append(), and v.
Referenced by sdb_querys(), and walk_namespace().
Definition at line 785 of file query.c.
References cmd, free(), out, s, and sdb_querys().
Referenced by __sdb_prompt(), init_msg_types(), insertkeys(), main(), rz_main_rz_bin(), sdb_query_lines(), and sdb_queryf().
Definition at line 856 of file query.c.
References free(), s, sdb_query_lines(), and slurp().
Referenced by sdb_querys().
Definition at line 800 of file query.c.
References cmd, free(), op, p, s, sdb_query(), and strdup().
Referenced by sdb_load_from_string(), and sdb_query_file().
Definition at line 57 of file query.c.
References s, sdb_query(), and vsnprintf.
Referenced by rz_debug_signal_setup().
Definition at line 164 of file query.c.
References calloc(), cmd, d, encode(), eprintf, eq, fail, foreach_list_cb(), free(), i, setup::idx, isspace, len, list(), ls_foreach, ls_free(), malloc(), memcpy(), n, sdb_ns_t::name, NULL, ok, out, out_concat, p, PFMT64x, r, repeat(), root, s, sdb_array_add(), sdb_array_add_sorted(), sdb_array_add_sorted_num(), sdb_array_delete(), sdb_array_get(), sdb_array_get_num(), sdb_array_insert(), sdb_array_length(), sdb_array_pop(), sdb_array_push(), sdb_array_remove(), sdb_array_set(), sdb_array_set_num(), sdb_array_sort(), sdb_array_sort_num(), sdb_atoi(), sdb_concat(), sdb_const_get(), sdb_decode(), sdb_encode(), sdb_fmt(), sdb_foreach_list(), sdb_foreach_match(), sdb_get(), sdb_hash(), sdb_isnum(), sdb_itoa(), sdb_ns(), sdb_num_base(), sdb_num_dec(), sdb_num_inc(), SDB_OPTION_FS, sdb_query_file(), SDB_RS, sdb_set(), sdb_set_owned(), sdb_type(), sdb_uncat(), sdb_unset_like(), sdbkv_key(), sdbkv_value(), snprintf, st64, strbuf_append(), strbuf_free(), strbuf_new(), strdup(), autogen_x86imm::tmp, type, ut64(), val, w, and walk_namespace().
Referenced by autocomplete_sdb(), cmd_analysis_esil(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), num_callback(), rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rop_classify_nops(), rop_kuery(), rz_cmd_info_kuery(), rz_cmd_kuery(), rz_core_agraph_print_sdb(), rz_core_cmd_foreach(), rz_core_cmd_subst_i(), rz_core_graph_print(), rz_core_kuery_print(), sdb_query(), and sdb_querysf().
|
static |
Definition at line 824 of file query.c.
References close, fd, free(), lseek, malloc(), NULL, O_RDONLY, read(), SEEK_END, SEEK_SET, and create_tags_rz::text.
Referenced by sdb_query_file().
TODO perform free and force all callers to update the ref?
Definition at line 22 of file query.c.
References b, len, memcpy(), NULL, realloc(), sb, and cmd_descs_generate::str.
Referenced by foreach_list_cb(), and sdb_querys().
|
static |
|
static |
Definition at line 136 of file query.c.
References encode(), foreach_list_cb(), len, ls_foreach, memcpy(), n, sdb_t::ns, out, p, root, sb, sdb_ns_t::sdb, and sdb_foreach().
Referenced by sdb_querys().