Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_bin.h>
#include <rz_debug.h>
#include <rz_core.h>
#include <rz_io.h>
#include "../core_private.h"
Go to the source code of this file.
Classes | |
struct | open_list_ascii_data_t |
Definition at line 15 of file cmd_open.c.
References baseaddr, rz_core_file_t::fd, r, rz_bin_file_find_by_fd(), rz_bin_reload(), rz_core_bin_apply_all_info(), and rz_core_file_cur().
Referenced by rz_open_binary_reload_handler().
Definition at line 112 of file cmd_open.c.
References desc, p, PFMT64x, rz_io_desc_size(), and rz_str_rwx_i().
Referenced by rz_open_list_handler(), and rz_open_show_current_handler().
Definition at line 121 of file cmd_open.c.
References desc, from, pj_end(), pj_kb(), pj_kN(), pj_kn(), pj_ks(), pj_o(), rz_io_desc_size(), RZ_PERM_W, and ut64().
Referenced by rz_open_list_handler(), and rz_open_show_current_handler().
Definition at line 105 of file cmd_open.c.
Referenced by rz_open_list_handler(), and rz_open_show_current_handler().
Definition at line 137 of file cmd_open.c.
References desc, rz_io_desc_size(), rz_str_rwx_i(), and rz_table_add_rowf().
Referenced by rz_open_list_handler(), and rz_open_show_current_handler().
Definition at line 90 of file cmd_open.c.
References desc, open_list_ascii_data_t::fdsz, flags, NULL, open_list_ascii_data_t::p, p, PFMT64x, rz_cons_get_size(), rz_cons_printf(), rz_io_desc_size(), RZ_PRINT_FLAGS_HEADER, rz_print_progressbar(), rz_str_rwx_i(), and ut64().
Referenced by rz_open_list_ascii_handler().
Definition at line 80 of file cmd_open.c.
References desc, open_list_ascii_data_t::fdsz, rz_io_desc_size(), and ut64().
Referenced by rz_open_list_ascii_handler().
|
static |
Definition at line 885 of file cmd_open.c.
References baddr(), bool2status(), rz_core_t::config, rz_core_tasks_t::current_task, rz_core_tasks_t::main_task, NULL, RZ_CMD_STATUS_ERROR, rz_config_get_i(), rz_core_bin_load(), rz_core_file_open(), rz_core_fini(), rz_core_init(), rz_core_task_sync_begin(), rz_core_task_sync_end(), RZ_LOG_ERROR, RZ_PERM_R, rz_core_t::tasks, and ut64().
Referenced by rz_open_core_file_handler(), and rz_reopen_core_handler().
|
static |
Definition at line 608 of file cmd_open.c.
References fd, rz_core_t::io, map(), maps(), NULL, rz_core_t::offset, open_maps_show(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cmd_state_output_set_columnsf(), rz_io_map_get(), rz_io_maps(), RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, and rz_pvector_foreach.
Referenced by rz_open_maps_list_handler().
|
static |
Definition at line 575 of file cmd_open.c.
References map(), PFMT64x, pj_end(), pj_ki(), pj_kn(), pj_ks(), pj_o(), rz_cons_printf(), rz_io_map_get_from, rz_io_map_get_to, rz_itv_end(), rz_itv_size(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_QUIETEST, RZ_OUTPUT_MODE_TABLE, rz_str_get(), rz_str_rwx_i(), and rz_table_add_rowf().
Referenced by open_maps_list(), and rz_open_maps_list_cur_handler().
|
static |
Definition at line 946 of file cmd_open.c.
References addr, desc, rz_core_t::io, NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_open_at(), RZ_LOG_ERROR, and rz_num_t::value.
Referenced by rz_open_nobin_handler(), and rz_open_nobin_write_handler().
|
static |
Definition at line 212 of file cmd_open.c.
References rz_core_t::bin, fd, rz_bin_file_t::id, rz_core_t::io, rz_bin_file_find_by_fd(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_raise(), rz_core_block_read(), rz_io_fd_get_current(), rz_io_use_fd(), and RZ_LOG_ERROR.
Referenced by rz_open_prioritize_handler(), rz_open_prioritize_next_handler(), rz_open_prioritize_next_rotate_handler(), and rz_open_prioritize_prev_handler().
Definition at line 32 of file cmd_open.c.
References desc, rz_io_desc_t::fd, free(), malloc(), PFMT64u, rz_io_desc_close(), rz_io_desc_exchange(), rz_io_desc_is_blockdevice(), rz_io_desc_is_dbg(), rz_io_desc_read_at(), rz_io_desc_size(), rz_io_desc_write_at(), rz_io_open_nomap(), RZ_PERM_RW, rz_str_newf(), and ut64().
Referenced by rz_core_file_reopen_in_malloc().
|
static |
Definition at line 1081 of file cmd_open.c.
References bool2status(), desc, rz_io_t::desc, rz_core_file_t::fd, rz_core_t::file, create_tags_rz::fname, free(), rz_core_t::io, rz_io_desc_t::perm, RZ_CMD_STATUS_ERROR, rz_core_bin_load_structs(), rz_core_file_reopen(), rz_io_desc_get(), RZ_LOG_ERROR, RZ_LOG_WARN, and strdup().
Referenced by rz_reopen_nobin_headers_handler(), and rz_reopen_nobin_write_headers_handler().
Definition at line 74 of file cmd_open.c.
References rz_io_t::files, rz_core_t::io, reopen_in_malloc_cb(), and rz_id_storage_foreach().
Referenced by rz_reopen_malloc_handler().
RZ_IPI RzCmdStatus rz_open_arch_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 179 of file cmd_open.c.
References arch, argv, bits(), NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_set_arch_bits(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 737 of file cmd_open.c.
References argv, rz_core_t::bin, desc, fd, rz_core_t::io, rz_core_t::num, rz_core_t::offset, rz_bin_open_io(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_apply_all_info(), rz_core_bin_options_init(), rz_io_desc_get(), rz_io_fd_get_current(), RZ_LOG_ERROR, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 688 of file cmd_open.c.
References rz_core_t::bin, rz_bin_file_delete_all(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 674 of file cmd_open.c.
References argv, rz_core_t::bin, NULL, rz_bin_file_find_by_id(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_binfiles_delete(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 753 of file cmd_open.c.
References argv, rz_core_t::bin, desc, fd, rz_io_t::files, files, rz_core_t::io, NULL, rz_core_t::offset, rz_bin_open_io(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_apply_all_info(), rz_core_bin_options_init(), rz_id_storage_list(), rz_io_desc_close(), rz_io_fd_get_current(), rz_io_open(), rz_io_use_fd(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_LOG_ERROR, and RZ_PERM_R.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_list_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 706 of file cmd_open.c.
References rz_bin_file_load_options_t::baseaddr, rz_core_t::bin, rz_core_t::blocksize, rz_core_t::config, rz_bin_file_t::fd, rz_bin_file_t::file, info(), list(), NULL, rz_bin_file_t::o, rz_core_t::offset, rz_bin_object_t::opts, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_cons_get_size(), rz_cons_printf(), rz_core_table(), rz_free, rz_list_append(), rz_list_free(), rz_list_newf(), rz_listinfo_free(), rz_listinfo_new(), rz_table_free(), rz_table_tostring(), rz_table_visual_list(), sdb_itoa(), and rz_bin_object_t::size.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 693 of file cmd_open.c.
References RZ_CMD_STATUS_OK, and rz_core_binfiles_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_rebase_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 790 of file cmd_open.c.
References argv, rz_core_t::bin, rz_core_t::num, rz_bin_cur(), RZ_CMD_STATUS_OK, rz_core_bin_apply_all_info(), rz_core_bin_rebase(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_reload_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 796 of file cmd_open.c.
References argv, core_bin_reload(), NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_block_read(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_select_fd_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 660 of file cmd_open.c.
References argv, rz_core_t::bin, eprintf, fd, rz_bin_file_t::id, NULL, rz_bin_file_find_by_fd(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_raise(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_select_id_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 651 of file cmd_open.c.
References argv, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_raise(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_binary_show_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 698 of file cmd_open.c.
References rz_core_t::bin, rz_bin_file_t::id, rz_core_t::offset, rz_bin_file_at(), RZ_CMD_STATUS_OK, and rz_cons_printf().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_close_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 158 of file cmd_open.c.
References rz_core_t::analysis, rz_core_t::bin, rz_core_t::flags, rz_core_t::io, rz_analysis_purge(), rz_bin_file_delete_all(), RZ_CMD_STATUS_OK, rz_core_file_close_fd(), rz_flag_unset_all(), rz_io_close_all(), and RZ_LOG_INFO.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_close_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 145 of file cmd_open.c.
References argv, fd, int, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_file_close_fd(), RZ_LOG_ERROR, rz_num_is_valid_input(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_core_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 902 of file cmd_open.c.
References argv, and open_core_file().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_exchange_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 873 of file cmd_open.c.
References argv, fd, int, rz_core_t::io, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_desc_exchange(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 806 of file cmd_open.c.
References addr, argv, bool2status(), rz_core_t::num, rz_core_file_open_load(), rz_num_math(), RZ_PERM_R, rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_list_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 170 of file cmd_open.c.
References desc_list_visual_cb(), open_list_ascii_data_t::fdsz, rz_io_t::files, init_desc_list_visual_cb(), rz_core_t::io, open_list_ascii_data_t::p, rz_core_t::print, RZ_CMD_STATUS_OK, and rz_id_storage_foreach().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 818 of file cmd_open.c.
References desc_list_cb(), desc_list_json_cb(), desc_list_quiet_cb(), desc_list_table_cb(), rz_io_t::files, rz_core_t::io, rz_core_t::print, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_OK, rz_id_storage_foreach(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, and RZ_OUTPUT_MODE_TABLE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_malloc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 906 of file cmd_open.c.
References argv, benchmark::cfile, desc, err, free(), int, rz_core_t::io, len, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_load(), rz_core_file_open(), rz_io_desc_get(), rz_io_desc_write_at(), rz_io_read_at(), RZ_LOG_ERROR, RZ_NEWS, rz_num_math(), RZ_PERM_RWX, rz_strf, and rz_warn_if_fail.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_all_fd_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 304 of file cmd_open.c.
References argv, desc, fd, rz_core_t::io, map(), NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_desc_get(), rz_io_fd_get_current(), rz_io_map_add(), rz_io_map_set_name(), RZ_LOG_ERROR, rz_num_math(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_deprioritize_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 409 of file cmd_open.c.
References argv, rz_core_t::io, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_map_depriorize(), rz_io_map_exists_for_id(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_flags_global_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 510 of file cmd_open.c.
References ADD, argv, DEL, rz_core_t::io, map(), maps(), RZ_CMD_STATUS_OK, rz_io_maps(), rz_pvector_foreach, and rz_str_rwx().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_flags_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 488 of file cmd_open.c.
References argv, rz_core_t::io, map(), NULL, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_get(), rz_io_map_resolve(), RZ_LOG_ERROR, rz_num_math(), and rz_str_rwx().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_list_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 276 of file cmd_open.c.
References rz_core_t::blocksize, rz_core_t::config, free(), info(), rz_core_t::io, list(), map(), maps(), NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_cons_get_size(), rz_cons_printf(), rz_core_table(), rz_io_maps(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_listinfo_free(), rz_listinfo_new(), rz_pvector_foreach_prev, rz_strf, rz_table_free(), rz_table_tostring(), and rz_table_visual_list().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_list_cur_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 637 of file cmd_open.c.
References rz_core_t::io, map(), rz_core_t::offset, open_maps_show(), PFMT64x, rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_get(), RZ_LOG_ERROR, and RZ_OUTPUT_MODE_TABLE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 631 of file cmd_open.c.
References argv, fd, NULL, open_maps_list(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_map_fd_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 471 of file cmd_open.c.
References argv, desc, fd, rz_core_t::io, map(), NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_desc_get(), rz_io_desc_size(), rz_io_fd_get_current(), rz_io_map_add(), rz_io_map_set_name(), RZ_LOG_ERROR, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_map_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 544 of file cmd_open.c.
References argv, desc, fd, int, rz_core_t::io, map(), NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_desc_get(), rz_io_fd_size(), rz_io_map_add(), rz_io_map_set_name(), RZ_LOG_ERROR, rz_num_math(), rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_name_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 439 of file cmd_open.c.
References rz_core_t::io, map(), rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_del_name(), rz_io_map_get(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_name_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 429 of file cmd_open.c.
References argv, rz_core_t::io, map(), rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_get(), rz_io_map_set_name(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_name_id_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 460 of file cmd_open.c.
References argv, rz_core_t::io, map(), rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_del_name(), rz_io_map_resolve(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_name_id_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 449 of file cmd_open.c.
References argv, rz_core_t::io, map(), rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_resolve(), rz_io_map_set_name(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_prioritize_binid_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 385 of file cmd_open.c.
References argv, rz_core_t::bin, rz_core_t::files, rz_bin_file_t::id, rz_core_t::io, regress::m, map(), NULL, rz_core_t::num, rz_bin_file_set_cur_by_id(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_priorize(), RZ_LOG_ERROR, rz_num_math(), and rz_pvector_foreach.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_prioritize_fd_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 420 of file cmd_open.c.
References argv, fd, int, rz_core_t::io, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_priorize_for_fd(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_prioritize_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 374 of file cmd_open.c.
References argv, rz_core_t::io, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_map_exists_for_id(), rz_io_map_priorize(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_relocate_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 338 of file cmd_open.c.
References addr, argv, rz_core_t::io, map(), rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_get(), rz_io_map_remap(), RZ_LOG_ERROR, rz_num_is_valid_input(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_relocate_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 320 of file cmd_open.c.
References addr, argv, rz_core_t::io, NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_remap(), RZ_LOG_ERROR, rz_num_is_valid_input(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_remove_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 271 of file cmd_open.c.
References rz_core_t::io, RZ_CMD_STATUS_OK, and rz_io_map_reset().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_remove_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 258 of file cmd_open.c.
References argv, rz_core_t::io, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_del(), RZ_LOG_ERROR, rz_num_is_valid_input(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_maps_resize_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 356 of file cmd_open.c.
References argv, rz_core_t::io, NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_map_resize(), RZ_LOG_ERROR, rz_num_is_valid_input(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_nobin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 962 of file cmd_open.c.
References addr, argv, rz_core_t::num, open_nobin_file(), rz_num_math(), RZ_PERM_R, rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_nobin_write_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 968 of file cmd_open.c.
References addr, argv, rz_core_t::num, open_nobin_file(), rz_num_math(), RZ_PERM_RW, rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_prioritize_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 235 of file cmd_open.c.
References argv, fd, and prioritize_file().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_prioritize_next_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 240 of file cmd_open.c.
References fd, rz_core_t::io, prioritize_file(), rz_io_fd_get_current(), and rz_io_fd_get_next().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_prioritize_next_rotate_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 250 of file cmd_open.c.
References fd, rz_core_t::io, prioritize_file(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_fd_get_current(), rz_io_fd_get_lowest(), and rz_io_fd_get_next().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_prioritize_prev_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 245 of file cmd_open.c.
References fd, rz_core_t::io, prioritize_file(), rz_io_fd_get_current(), and rz_io_fd_get_prev().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_show_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 841 of file cmd_open.c.
References desc, desc_list_cb(), desc_list_json_cb(), desc_list_quiet_cb(), desc_list_table_cb(), rz_core_t::io, map(), rz_core_t::offset, PFMT64x, rz_core_t::print, rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_desc_get(), rz_io_map_get(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, and RZ_OUTPUT_MODE_TABLE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_use_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 188 of file cmd_open.c.
References argv, rz_core_t::bin, f, rz_bin_file_t::file, rz_core_t::file, rz_core_t::files, rz_bin_file_t::id, rz_core_t::io, NULL, rz_bin_file_find_by_fd(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_bin_raise(), rz_core_block_read(), rz_io_use_fd(), RZ_LOG_ERROR, RZ_LOG_INFO, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_open_write_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 812 of file cmd_open.c.
References addr, argv, bool2status(), rz_core_t::num, rz_core_file_open_load(), rz_num_math(), RZ_PERM_RW, rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_binary_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1014 of file cmd_open.c.
References argv, bool2status(), and rz_core_file_reopen().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_core_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1018 of file cmd_open.c.
References rz_io_t::desc, rz_core_t::io, open_core_file(), RZ_CMD_STATUS_ERROR, RZ_LOG_ERROR, and rz_io_desc_t::uri.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_debug_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1048 of file cmd_open.c.
References addr, argv, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_file_reopen_remote_debug(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_debug_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1027 of file cmd_open.c.
References args, argv, free(), i, rz_cmd_escape_arg(), RZ_CMD_ESCAPE_DOUBLE_QUOTED_ARG, RZ_CMD_STATUS_OK, rz_core_file_reopen_debug(), RZ_NEWS, rz_str_array_join(), and rz_str_newf().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_debug_rzrun_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1055 of file cmd_open.c.
References argv, rz_core_t::config, free(), RZ_CMD_STATUS_OK, rz_config_set(), rz_core_file_reopen_debug(), rz_file_dump(), rz_file_temp(), rz_str_replace_char(), s, and strdup().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 974 of file cmd_open.c.
References argv, rz_io_t::desc, fd, rz_io_desc_t::fd, int, rz_core_t::io, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_io_file_open(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_malloc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1068 of file cmd_open.c.
References RZ_CMD_STATUS_OK, and rz_core_file_reopen_in_malloc().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_nobin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1073 of file cmd_open.c.
References bool2status(), NULL, and rz_core_file_reopen().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_nobin_headers_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1100 of file cmd_open.c.
References reopen_nobin_headers().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_nobin_write_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1077 of file cmd_open.c.
References bool2status(), NULL, rz_core_file_reopen(), and RZ_PERM_RW.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_nobin_write_headers_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1104 of file cmd_open.c.
References reopen_nobin_headers(), and RZ_PERM_RW.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_reopen_write_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 993 of file cmd_open.c.
References argv, rz_io_t::desc, fd, rz_io_desc_t::fd, int, rz_core_t::io, NULL, rz_io_desc_t::perm, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_io_file_reopen(), RZ_LOG_ERROR, rz_num_math(), and RZ_PERM_RW.
Referenced by rzshell_cmddescs_init().