Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "sdb.h"
#include "sdb_private.h"
Go to the source code of this file.
Classes | |
struct | foreach_list_filter_t |
struct | _match_sdb_user |
struct | UnsetCallbackData |
struct | LikeCallbackData |
Macros | |
#define | BUCKET_FOREACH(ht, bt, j, kv) for ((j) = 0, (kv) = (SdbKv *)(bt)->arr; j < (bt)->count; (j)++, (kv) = next_kv(ht, kv)) |
#define | BUCKET_FOREACH_SAFE(ht, bt, j, count, kv) |
Variables | |
static SdbHook | global_hook = NULL |
static void * | global_user = NULL |
#define BUCKET_FOREACH_SAFE | ( | ht, | |
bt, | |||
j, | |||
count, | |||
kv | |||
) |
Definition at line 625 of file sdb.c.
References a, b, and sdbkv_key().
Referenced by sdb_foreach_list(), and sdb_foreach_list_filter_user().
Definition at line 785 of file sdb.c.
References key, s, sdb_disk_insert(), and value.
Referenced by sdb_sync().
Definition at line 794 of file sdb.c.
References k, s, and sdb_ht_delete().
Referenced by sdb_sync().
Definition at line 717 of file sdb.c.
References b, cdb_read(), len, and s.
Referenced by sdb_dump_dupnext().
|
static |
Definition at line 445 of file sdb.c.
References len, and cmd_descs_generate::str.
Referenced by match(), and RDG_fillLiteralDistrib().
Definition at line 1121 of file sdb.c.
References LikeCallbackData::array, LikeCallbackData::array_index, LikeCallbackData::array_size, LikeCallbackData::cb, setup::idx, k, LikeCallbackData::key, NULL, realloc(), LikeCallbackData::sdb, sdb_match(), v, and LikeCallbackData::val.
Referenced by sdb_like().
Definition at line 450 of file sdb.c.
References a, expr(), lastChar(), and cmd_descs_generate::str.
Referenced by sdbkv_match().
Definition at line 13 of file sdb.c.
Referenced by delete(), and update_key().
|
inlinestatic |
Definition at line 351 of file sdb.c.
References key, s, sdb_exists(), sdb_set(), and val.
Referenced by sdb_num_add().
Definition at line 416 of file sdb.c.
References close, rz_socket_t::fd, free(), NULL, and s.
Referenced by __func_name_from_ord(), rz_analysis_function_cc_load_handler(), sdb_concat_by_path(), sdb_load_arch_platform_by_path(), sdb_load_arch_profile_by_path(), sdb_load_by_path(), sdb_load_from_string(), sdb_reset(), and session_sdb_save().
Definition at line 329 of file sdb.c.
References key, malloc(), memcpy(), p, s, sdb_const_get_len(), sdb_set(), sdb_set_owned(), and value.
Referenced by rz_core_search_rop(), and sdb_querys().
Definition at line 1041 of file sdb.c.
References options, s, sdb_journal_clear(), sdb_journal_close(), sdb_journal_load(), sdb_journal_open(), SDB_OPTION_FS, SDB_OPTION_JOURNAL, SDB_OPTION_NOSTAMP, and SDB_OPTION_SYNC.
Referenced by createdb(), main(), and sdb_grep_dump().
Definition at line 279 of file sdb.c.
References key, NULL, s, and sdb_const_get_len().
Referenced by append_shortcut(), bin_elf_versioninfo_verneed(), bin_elf_versioninfo_versym(), bin_pe_versioninfo(), file_load(), get_atomic_type(), get_callable_type(), get_enum_type(), get_msg_type(), parse_format(), rz_analysis_cc_arg(), rz_analysis_cc_default(), rz_analysis_cc_error(), rz_analysis_cc_exist(), rz_analysis_cc_get(), rz_analysis_cc_max_arg(), rz_analysis_cc_ret(), rz_analysis_cc_self(), rz_analysis_syscc_default(), rz_core_analysis_esil_init_mem(), rz_core_bin_export_info(), rz_core_bin_get_compile_time(), rz_project_load(), rz_serialize_flag_load(), rz_syscall_get(), rz_syscall_get_i(), sdb_array_add_sorted_num(), sdb_array_contains(), sdb_array_get(), sdb_array_get_num(), sdb_array_indexof(), sdb_array_length(), sdb_array_remove(), sdb_array_remove_num(), sdb_array_size(), sdb_bool_get(), sdb_diff_kv_cb(), sdb_num_add(), sdb_num_exists(), sdb_num_get(), sdb_num_max(), sdb_num_min(), sdb_num_set(), and sdb_querys().
Definition at line 220 of file sdb.c.
References sdb_kv::cas, cdb_datalen, cdb_datapos, cdb_findnext(), cdb_findstart(), sdb_kv::expire, rz_socket_t::fd, found, key, len, NULL, pos, s, SDB_CDB_MAX_VALUE, sdb_ht_find_kvp(), sdb_now(), sdb_unset(), sdbkv_value(), sdbkv_value_len(), and ut64().
Referenced by sdb_array_add_sorted(), sdb_array_append(), sdb_array_insert(), sdb_array_prepend(), sdb_array_set(), sdb_concat(), sdb_const_get(), and sdb_get_len().
Definition at line 1084 of file sdb.c.
References copy_foreach_cb(), dst, ls_foreach, sdb_ns_t::name, sdb_ns_t::sdb, sdb_foreach(), sdb_ns(), and src.
Referenced by rz_serialize_analysis_cc_load(), rz_serialize_analysis_cc_save(), rz_serialize_analysis_classes_load(), rz_serialize_analysis_classes_save(), rz_serialize_analysis_function_noreturn_load(), rz_serialize_analysis_function_noreturn_save(), rz_serialize_flag_load(), rz_serialize_flag_save(), and session_sdb_load_ns().
Definition at line 163 of file sdb.c.
References count, rz_socket_t::fd, s, sdb_dump_begin(), and sdb_dump_hasnext().
Referenced by __update_modal(), and resolve_syscalls().
Definition at line 1069 of file sdb.c.
References f, free(), s, and sdb_fini().
Referenced by rz_cmd_kuery().
Definition at line 835 of file sdb.c.
References rz_socket_t::fd, s, and seek_set().
Referenced by sdb_count(), sdb_foreach_cdb(), sdb_grep_dump(), sdb_isempty(), and sdb_stats().
Definition at line 877 of file sdb.c.
References cdb_getkvlen(), free(), getbytes(), key, malloc(), NULL, s, SDB_CDB_MAX_KEY, SDB_CDB_MAX_VALUE, SDB_CDB_MIN_KEY, and value.
Referenced by sdb_foreach_cdb(), and sdb_grep_dump().
Definition at line 844 of file sdb.c.
References cdb_getkvlen(), k, s, and v.
Referenced by sdb_count(), sdb_isempty(), and sdb_stats().
Definition at line 358 of file sdb.c.
References cdb_datapos, cdb_findnext(), cdb_findstart(), cdb_read(), rz_socket_t::fd, found, key, pos, s, sdb_hash(), sdb_ht_find_kvp(), sdbkv_value(), and v.
Referenced by rz_analysis_class_create(), rz_analysis_class_delete_attr_raw(), rz_analysis_class_exists_raw(), and sdb_add().
Definition at line 971 of file sdb.c.
References sdb_kv::cas, sdb_kv::expire, found, key, s, sdb_ht_find_kvp(), and sdbkv_value().
Definition at line 930 of file sdb.c.
References calloc(), sdb_kv::cas, cdb_datalen, cdb_datapos, cdb_findnext(), cdb_findstart(), cdb_read(), sdb_kv::expire, rz_socket_t::fd, found, INT32_MAX, key, len, parse_expire(), pos, s, sdb_hash(), sdb_ht_find_kvp(), sdb_set_owned(), and sdbkv_value().
Definition at line 128 of file sdb.c.
References free(), NULL, s, sdb_lock(), sdb_lock_file(), sdb_unlock(), and strdup().
Referenced by rz_cmd_kuery(), and session_sdb_save().
Definition at line 179 of file sdb.c.
References cdb_free(), close, rz_socket_t::fd, free(), ls_free(), memset(), s, sdb_hook_free(), sdb_ht_free(), sdb_journal_close(), sdb_lock_file(), sdb_ns_free_all(), and sdb_unlock().
Referenced by sdb_drain(), sdb_free(), and sdb_unlink().
RZ_API bool sdb_foreach | ( | Sdb * | s, |
SdbForeachCallback | cb, | ||
void * | user | ||
) |
Definition at line 758 of file sdb.c.
References BUCKET_FOREACH_SAFE, cb, count, i, NULL, s, sdb_foreach_cdb(), sdb_foreach_end(), sdbkv_key(), and sdbkv_value().
Referenced by deserialize_checkpoints(), deserialize_memory(), deserialize_registers(), load_flags(), rz_analysis_class_foreach(), rz_cmd_kuery(), rz_config_unserialize(), rz_debug_signal_list(), rz_display_opcode_handler(), rz_project_migrate_v1_v2(), rz_project_migrate_v2_v3(), rz_project_migrate_v3_v4(), rz_serialize_analysis_blocks_load(), rz_serialize_analysis_functions_load(), rz_serialize_analysis_global_var_load(), rz_serialize_analysis_hints_load(), rz_serialize_analysis_imports_load(), rz_serialize_analysis_meta_load(), rz_serialize_analysis_xrefs_load(), rz_serialize_bp_load(), rz_serialize_config_load(), rz_serialize_flag_zones_load(), rz_serialize_spaces_load(), rz_syscall_list(), sdb_copy(), sdb_diff_ctx(), sdb_diff_report(), sdb_foreach_list(), sdb_foreach_list_filter_user(), sdb_foreach_match(), sdb_like(), sdb_merge(), sdb_unset_like(), text_save(), and walk_namespace().
|
static |
Definition at line 730 of file sdb.c.
References cb, found, free(), k, NULL, s, SDB_CDB_MAX_KEY, sdb_dump_begin(), sdb_dump_dupnext(), sdb_ht_find_kvp(), sdbkv_key(), sdbkv_value(), and v.
Referenced by sdb_foreach(), and sdb_sync().
Definition at line 630 of file sdb.c.
References __cmp_asc(), list(), ls_newf(), ls_sort(), s, sdb_foreach(), sdb_foreach_list_cb(), and sdbkv_free().
Referenced by __delete_almighty(), __exec_almighty(), __init_almighty_db(), __set_rcb(), __update_modal(), rop_kuery(), rz_analysis_calling_conventions(), rz_analysis_class_get_all(), rz_analysis_noreturn_functions(), rz_cmd_search(), rz_core_bin_export_info(), rz_flag_tags_list(), sdb_load_arch_profile(), sdb_load_base_types(), sdb_load_platform_profile(), sdb_load_sysregs(), sdb_querys(), text_save(), and typelinks_load_sdb().
Definition at line 615 of file sdb.c.
References sdb_kv::base, k, list(), ls_append(), RZ_NEW0, strdup(), and v.
Referenced by sdb_foreach_list().
RZ_API SdbList* sdb_foreach_list_filter | ( | Sdb * | s, |
SdbForeachCallback | filter, | ||
bool | sorted | ||
) |
Definition at line 685 of file sdb.c.
References NULL, s, and sdb_foreach_list_filter_user().
Referenced by rz_analysis_dwarf_integrate_functions(), and sdb_load_callables().
Definition at line 645 of file sdb.c.
References sdb_kv::base, err, foreach_list_filter_t::filter, k, list(), foreach_list_filter_t::list, ls_append(), NULL, RZ_NEW0, sdbkv_free(), strdup(), foreach_list_filter_t::user, and v.
Referenced by sdb_foreach_list_filter_user().
RZ_API SdbList* sdb_foreach_list_filter_user | ( | Sdb * | s, |
SdbForeachCallback | filter, | ||
bool | sorted, | ||
void * | user | ||
) |
Definition at line 668 of file sdb.c.
References __cmp_asc(), filter(), foreach_list_filter_t::filter, list(), foreach_list_filter_t::list, ls_newf(), ls_sort(), NULL, s, sdb_foreach(), sdb_foreach_list_filter_cb(), sdbkv_free(), and foreach_list_filter_t::user.
Referenced by sdb_foreach_list_filter().
Definition at line 710 of file sdb.c.
References expr(), list(), ls_newf(), s, sdb_foreach(), sdb_foreach_match_cb(), and sdbkv_free().
Referenced by sdb_querys().
Definition at line 695 of file sdb.c.
References sdb_kv::base, _match_sdb_user::expr, k, _match_sdb_user::list, ls_append(), RZ_NEW0, sdbkv_match(), _match_sdb_user::single, strdup(), and v.
Referenced by sdb_foreach_match().
Definition at line 206 of file sdb.c.
References free(), NULL, s, and sdb_fini().
Referenced by _parse_resource_directory(), bin_pe_parse_imports(), config_path(), dbdiff(), dot_trace_traverse(), ds_free(), get_gnu_verneed(), get_gnu_versym(), get_vernaux_entry_sdb(), get_verneed_entry_sdb(), get_verneed_entry_sdb_aux(), ns_free_exc_list(), Pe_r_bin_store_string(), Pe_r_bin_store_string_table(), rz_agraph_free(), rz_analysis_esil_free(), rz_analysis_esil_stats(), rz_analysis_free(), rz_analysis_function_cc_load_handler(), rz_asm_free(), rz_asm_use(), rz_bin_elf_free(), rz_bin_elf_get_symbols_info(), rz_bin_file_free(), rz_bin_free(), rz_bin_mdmp_free_pe32_bin(), rz_bin_mdmp_free_pe64_bin(), rz_bin_object_set_items(), rz_core_bin_apply_relocs(), rz_core_fini(), rz_core_sysenv_begin(), rz_debug_free(), rz_debug_session_load(), rz_debug_session_save(), rz_egg_free(), rz_flag_free(), rz_main_rz_bin(), rz_project_free(), rz_project_load_file(), rz_project_load_file_raw(), rz_project_save_file(), rz_syscall_free(), rz_syscall_setup(), sdb_concat_by_path(), sdb_grep_dump(), sdb_load_arch_platform_by_path(), sdb_load_arch_profile_by_path(), sdb_load_by_path(), sdb_load_from_string(), sdb_ns_free(), sdb_ns_set(), session_sdb_load(), session_sdb_load_ns(), set_bin_relocs(), showcount(), and terminate().
Definition at line 290 of file sdb.c.
References key, NULL, s, and sdb_get_len().
Referenced by __create_panel_db(), __func_name_from_ord(), __search_db(), get_callable_type(), get_enum_type(), get_struct_type(), get_type_data(), get_typedef_type(), get_union_type(), rename_key(), resolveModuleOrdinal(), rz_analysis_class_base_get_all(), rz_analysis_class_delete(), rz_analysis_class_get_attr_raw(), rz_analysis_class_method_delete_class(), rz_analysis_class_method_get_all(), rz_analysis_class_method_rename_class(), rz_analysis_class_rename(), rz_analysis_class_rename_attr_raw(), rz_analysis_class_vtable_delete_class(), rz_analysis_class_vtable_get_all(), rz_analysis_class_vtable_rename_class(), rz_analysis_dwarf_integrate_functions(), rz_asm_describe(), rz_core_bin_apply_resources(), rz_core_bin_info_print(), rz_egg_option_get(), rz_flag_tags_get(), rz_serialize_core_load(), rz_serialize_spaces_load(), sdb_array_delete(), sdb_array_pop_head(), sdb_array_pop_tail(), sdb_array_sort_num(), sdb_load_platform_profile(), sdb_load_sysregs(), and sdb_querys().
Definition at line 285 of file sdb.c.
References key, NULL, s, sdb_const_get_len(), strdup(), and value.
Referenced by sdb_array_sort(), sdb_get(), and sdb_uncat().
Definition at line 983 of file sdb.c.
References cb, i, ls_append(), ls_foreach, ls_new(), NULL, and s.
Referenced by sdb_new().
Definition at line 1019 of file sdb.c.
References i, k, ls_foreach, s, sdb_now(), and v.
Referenced by sdb_set_internal().
Definition at line 148 of file sdb.c.
References rz_socket_t::fd, s, sdb_dump_begin(), and sdb_dump_hasnext().
Referenced by rz_core_analysis_cc_init().
RZ_API char** sdb_like | ( | Sdb * | s, |
const char * | k, | ||
const char * | v, | ||
SdbForeachCallback | cb | ||
) |
Definition at line 1155 of file sdb.c.
References LikeCallbackData::array, LikeCallbackData::array_index, LikeCallbackData::array_size, calloc(), cb, free(), k, LikeCallbackData::key, like_cb(), NULL, s, sdb_foreach(), v, and LikeCallbackData::val.
Definition at line 144 of file sdb.c.
References d, s, sdb_foreach(), and sdb_merge_cb().
Referenced by rz_analysis_function_cc_load_handler(), and sdb_concat_by_path().
Definition at line 47 of file sdb.c.
References cdb_init(), close, fail, rz_socket_t::fd, free(), global_hook, global_user, lock(), ls_new(), malloc(), memcpy(), NULL, path, RZ_NEW0, s, sdb_hook(), sdb_ht_new(), sdb_lock(), sdb_lock_file(), sdb_lock_wait(), sdb_now(), sdb_open(), and strdup().
Referenced by __func_name_from_ord(), bin_pe_parse_imports(), config_path(), createdb(), dbdiff(), load_sdb(), main(), rz_analysis_function_cc_load_handler(), rz_asm_use(), rz_cmd_kuery(), rz_core_init(), rz_core_sysenv_begin(), rz_debug_signal_init(), rz_egg_new(), rz_main_rz_bin(), sdb_concat_by_path(), sdb_grep_dump(), sdb_load_arch_platform_by_path(), sdb_load_arch_profile_by_path(), sdb_load_by_path(), sdb_new0(), set_bin_relocs(), and showcount().
Definition at line 43 of file sdb.c.
References NULL, and sdb_new().
Referenced by __init(), _parse_resource_directory(), _store_resource_sdb(), agraph_init(), dot_trace_traverse(), get_gnu_verneed(), get_gnu_versym(), get_sdb(), get_vernaux_entry_sdb(), get_verneed_entry_sdb_aux(), init_msg_types(), load_buffer(), Pe_r_bin_store_fixed_file_info(), Pe_r_bin_store_resource_version_info(), Pe_r_bin_store_string(), Pe_r_bin_store_string_file_info(), Pe_r_bin_store_string_table(), Pe_r_bin_store_var(), Pe_r_bin_store_var_file_info(), rz_analysis_esil_stats(), rz_analysis_new(), rz_bin_dmp64_new_buf(), rz_bin_elf_get_symbols_info(), rz_bin_elf_new_buf(), rz_bin_file_new(), rz_bin_mdmp_new_buf(), rz_bin_mz_init(), rz_bin_new(), rz_bin_pe_new_buf(), rz_bin_te_new_buf(), rz_debug_session_save(), rz_flag_new(), rz_project_load_file_raw(), rz_project_save_file(), rz_syscall_new(), sdb_load_from_string(), sdb_ns_new(), session_sdb_load(), session_sdb_load_ns(), and ssa_get().
Definition at line 383 of file sdb.c.
References cdb_init(), close, eprintf, rz_socket_t::fd, free(), fstat, NULL, O_BINARY, O_RDONLY, s, and strdup().
Referenced by load_sdb(), sdb_disk_finish(), sdb_new(), and session_sdb_load_ns().
Definition at line 299 of file sdb.c.
References key, s, and sdb_ht_delete().
Referenced by __delete_almighty(), rename_key(), rz_analysis_class_delete(), rz_analysis_class_delete_attr_raw(), rz_analysis_class_rename_attr_raw(), and sdb_sync().
Definition at line 433 of file sdb.c.
References s, sdb_close(), sdb_ht_free(), and sdb_ht_new().
Referenced by cmd_analysis_esil(), load_sdb(), rz_agraph_reset(), rz_analysis_esil_stats(), rz_analysis_purge(), rz_core_analysis_cc_init(), rz_core_analysis_esil_deinit(), rz_flag_tags_reset(), rz_serialize_analysis_classes_load(), rz_serialize_analysis_function_noreturn_load(), and rz_type_cc_del_all_handler().
Definition at line 611 of file sdb.c.
References key, s, sdb_set_internal(), and val.
Referenced by __init_sdb(), _store_resource_sdb(), art_header_load(), bin_pe_init_hdr(), block_store(), bootimg_header_load(), copy_foreach_cb(), core_analysis_graph_construct_edges(), core_analysis_graph_construct_nodes(), core_analysis_graph_nodes(), file_save(), file_save_cb(), flag_save_cb(), function_store(), get_bbnodes(), get_bbupdate(), get_class_ro_t(), get_elf_intrp(), get_gnu_versym(), get_libs(), get_sdb(), get_vernaux_entry_sdb(), get_verneed_entry_sdb_aux(), hints_acc_store_cb(), info(), init_dt_dynamic_sdb(), init_ehdr_sdb(), init_items(), init_phdr_sdb(), init_sdb_formats(), init_shdr_sdb(), java_set_sdb(), kv_loadlibs(), lmf_header_load(), load_process_line(), parse_segments(), parse_signature(), Pe_r_bin_store_string(), Pe_r_bin_store_string_table(), rename_key(), rop_classify(), rz_agraph_del_node(), rz_agraph_set_curnode(), rz_agraph_set_title(), rz_analysis_cc_set(), rz_analysis_cc_set_error(), rz_analysis_cc_set_self(), rz_analysis_class_create(), rz_analysis_class_rename_attr_raw(), rz_analysis_class_set_attr_raw(), rz_analysis_set_cc_default(), rz_analysis_set_syscc_default(), rz_bin_mdmp_init_directory(), rz_bin_mdmp_init_directory_entry(), rz_bin_mdmp_init_hdr(), rz_bin_mdmp_init_parsing(), rz_bin_mz_init_hdr(), rz_bin_te_init_hdr(), rz_config_serialize(), rz_core_analysis_esil_init_mem(), rz_debug_signal_init(), rz_egg_option_set(), rz_flag_tags_set(), rz_project_migrate_v4_v5(), rz_project_save(), rz_serialize_analysis_global_var_save(), rz_serialize_analysis_imports_save(), rz_serialize_bp_save(), rz_serialize_config_save(), rz_serialize_core_save(), rz_serialize_flag_save(), rz_serialize_flag_zones_save(), rz_serialize_spaces_save(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_typelink(), save_union(), sdb_add(), sdb_array_add_sorted_num(), sdb_array_append(), sdb_array_insert(), sdb_array_pop_head(), sdb_array_prepend(), sdb_array_set(), sdb_bool_set(), sdb_concat(), sdb_journal_load(), sdb_merge_cb(), sdb_num_dec(), sdb_num_set(), sdb_querys(), sdb_save_dwarf_function(), sdb_set_enc(), sdb_unset(), serialize_checkpoints(), serialize_memory_cb(), serialize_register_cb(), store_xrefs_list_cb(), v1_v2_types_foreach_cb(), and v2_v3_types_foreach_cb().
Definition at line 532 of file sdb.c.
References sdb_kv::base, sdb_kv::cas, cdb_findnext(), cdb_findstart(), found, free(), key, malloc(), memcpy(), nextcas(), NULL, s, sdb_hash(), sdb_hook_call(), sdb_ht_delete(), sdb_ht_find_kvp(), sdb_ht_insert_kvp(), sdb_journal_log(), sdbkv_new2(), sdbkv_value(), sdbkv_value_len(), strdup(), and val.
Referenced by sdb_set(), and sdb_set_owned().
Definition at line 607 of file sdb.c.
References key, s, sdb_set_internal(), and val.
Referenced by bin_pe_init_hdr(), get_vernaux_entry_sdb(), get_versym_entry_sdb_from_verdef(), get_versym_entry_sdb_from_verneed(), rz_agraph_add_node_with_color(), sdb_array_add_sorted(), sdb_array_append(), sdb_array_delete(), sdb_array_insert(), sdb_array_pop_tail(), sdb_array_prepend(), sdb_array_set(), sdb_array_sort(), sdb_array_sort_num(), sdb_concat(), sdb_expire_set(), sdb_querys(), and sdb_uncat().
Definition at line 856 of file sdb.c.
References count, rz_socket_t::fd, mem, s, sdb_dump_begin(), and sdb_dump_hasnext().
Referenced by showcount().
Definition at line 803 of file sdb.c.
References _insert_into_disk(), _remove_afer_insert(), BUCKET_FOREACH_SAFE, count, sdb_kv::expire, i, s, sdb_disk_create(), sdb_disk_finish(), sdb_disk_insert(), sdb_foreach_cdb(), sdb_journal_clear(), sdb_remove(), sdbkv_key(), and sdbkv_value().
Referenced by config_path(), createdb(), ns_sync(), rz_cmd_kuery(), rz_core_sysenv_begin(), session_sdb_save(), and terminate().
Definition at line 304 of file sdb.c.
References free(), key, mod(), NULL, p, s, sdb_get_len(), sdb_set_owned(), v, and value.
Referenced by sdb_querys().
Definition at line 294 of file sdb.c.
References key, s, and sdb_set().
Referenced by rz_analysis_cc_del(), rz_analysis_noreturn_drop(), rz_core_analysis_esil_init_mem_del(), rz_project_migrate_v1_v2(), rz_project_migrate_v2_v3(), rz_project_migrate_v3_v4(), rz_project_migrate_v7_v8(), sdb_array_pop_head(), sdb_const_get_len(), and unset_cb().
Definition at line 1106 of file sdb.c.
References k, s, sdb_foreach(), and unset_cb().
Referenced by sdb_querys().
Definition at line 524 of file sdb.c.
References free(), RZ_FREE, sdbkv_key(), and sdbkv_value().
Referenced by sdb_foreach_list(), sdb_foreach_list_filter_cb(), sdb_foreach_list_filter_user(), and sdb_foreach_match().
Definition at line 472 of file sdb.c.
References e, eq, expr(), free(), match(), sdbkv_key(), sdbkv_value(), and strdup().
Referenced by sdb_foreach_match_cb().
Definition at line 489 of file sdb.c.
References k, sdbkv_new2(), and v.
Definition at line 493 of file sdb.c.
References sdb_kv::base, sdb_kv::cas, sdb_kv::expire, free(), k, malloc(), memcpy(), nextcas(), NULL, RZ_NEW0, and v.
Referenced by sdb_set_internal(), and sdbkv_new().
Definition at line 1098 of file sdb.c.
References k, UnsetCallbackData::key, UnsetCallbackData::sdb, sdb_match(), and sdb_unset().
Referenced by sdb_unset_like().
Definition at line 34 of file sdb.c.
Referenced by sdb_global_hook(), and sdb_new().
|
static |
Definition at line 35 of file sdb.c.
Referenced by sdb_global_hook(), and sdb_new().