Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Definition at line 380 of file io_desc.c.
References desc, and rz_io_desc_free().
Referenced by rz_io_desc_fini().
Definition at line 49 of file io_desc.c.
References desc, eprintf, rz_io_t::files, rz_id_storage_set(), rz_return_val_if_fail, and rz_sys_backtrace().
Referenced by find_apk_binary(), rz_core_file_open_many(), rz_io_desc_open(), rz_io_desc_open_plugin(), and rz_io_open_many().
Definition at line 165 of file io_desc.c.
References desc, rz_io_t::event, RZ_EVENT_IO_DESC_CLOSE, rz_event_send(), rz_io_desc_del(), and rz_io_map_cleanup().
Referenced by dmp_close(), handle_tmp_desc(), hash_context_create_desc_io_stdin(), hash_context_create_desc_io_string(), hash_context_run(), io_create_mem_map(), perform_mapped_file_yank(), reopen_in_malloc_cb(), rz_core_cmd_subst_i(), rz_core_file_close(), rz_core_rtr_rap_run(), rz_core_vfile_bin_file_deleted(), rz_diff_io_close(), rz_diff_io_open(), rz_io_close(), rz_io_fd_close(), rz_io_reopen(), and rz_open_binary_file_handler().
Definition at line 61 of file io_desc.c.
References desc, rz_io_t::desc, fd, rz_io_t::files, NULL, rz_id_storage_get(), rz_io_desc_free(), rz_io_map_cleanup(), and rz_return_val_if_fail.
Referenced by rz_io_desc_close(), and rz_io_reopen().
Definition at line 275 of file io_desc.c.
References rz_io_desc_t::cache, desc, fd, rz_io_desc_t::fd, rz_io_t::files, map(), rz_io_t::maps, rz_io_t::p_cache, rz_io_desc_t::perm, rz_id_storage_set(), rz_io_desc_cache_cleanup(), rz_io_desc_get(), RZ_PERM_X, and rz_pvector_foreach.
Referenced by reopen_in_malloc_cb(), rz_io_reopen(), and rz_open_exchange_handler().
Definition at line 390 of file io_desc.c.
References rz_io_t::desc, desc_fini_cb(), rz_io_t::files, NULL, rz_id_storage_foreach(), rz_id_storage_free(), and rz_return_val_if_fail.
Referenced by rz_io_close_all(), rz_io_desc_init(), and rz_io_fini().
Definition at line 35 of file io_desc.c.
References desc, free(), rz_id_storage_delete(), and rz_io_desc_cache_fini().
Referenced by desc_fini_cb(), rz_core_file_open(), rz_core_file_open_many(), rz_io_desc_del(), rz_io_desc_open(), rz_io_desc_open_plugin(), and rz_io_zip_open().
Definition at line 73 of file io_desc.c.
References fd, rz_io_t::files, NULL, rz_id_storage_get(), and rz_return_val_if_fail.
Referenced by add_map(), basefind_new_bin_file(), core_file_do_load_for_debug(), file_save(), io_map_add(), is_valid_dmp_file(), is_valid_gdb_file(), isValidAddress(), map_multi_dex(), reopen_nobin_headers(), rz_core_bin_apply_maps(), rz_core_bin_load(), rz_core_bin_set_arch_bits(), rz_core_bin_whole_strings(), rz_core_file_binlist(), rz_core_file_close(), rz_core_file_find_by_name(), rz_core_file_info_print(), rz_core_file_open(), rz_core_file_open_load(), rz_core_file_print(), rz_core_file_reopen(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_raw_file_print(), rz_core_rtr_gdb_cb(), rz_core_setup_debugger(), rz_core_sysenv_begin(), rz_core_visual_title(), rz_io_bind(), rz_io_desc_exchange(), rz_io_desc_get_highest(), rz_io_desc_get_lowest(), rz_io_fd_close(), rz_io_fd_get_base(), rz_io_fd_get_buf(), rz_io_fd_get_name(), rz_io_fd_get_pid(), rz_io_fd_get_tid(), rz_io_fd_is_blockdevice(), rz_io_fd_is_chardevice(), rz_io_fd_is_dbg(), rz_io_fd_read(), rz_io_fd_read_at(), rz_io_fd_resize(), rz_io_fd_seek(), rz_io_fd_size(), rz_io_fd_write(), rz_io_fd_write_at(), rz_io_map_cleanup(), rz_io_reopen(), rz_io_use_fd(), rz_main_rizin(), rz_open_binary_add_handler(), rz_open_malloc_handler(), rz_open_maps_all_fd_handler(), rz_open_maps_map_fd_handler(), rz_open_maps_map_handler(), rz_open_show_current_handler(), rz_write_pcache_commit_handler(), and rz_write_pcache_list_handler().
Definition at line 344 of file io_desc.c.
References desc.
Referenced by core_file_do_load_for_debug(), rz_debug_get_baddr(), and rz_io_fd_get_base().
Returns the underlying buffer of the io descriptor.
[in] | desc | The io descriptor |
[out] | size | Size of buffer returned |
Definition at line 241 of file io_desc.c.
References desc, NULL, and rz_return_val_if_fail.
Referenced by rz_io_fd_get_buf().
Definition at line 96 of file io_desc.c.
References fd, NULL, rz_io_desc_get(), and rz_io_fd_get_highest().
Definition at line 104 of file io_desc.c.
References fd, NULL, rz_io_desc_get(), and rz_io_fd_get_lowest().
Definition at line 78 of file io_desc.c.
References desc, rz_io_t::files, NULL, rz_id_storage_get(), rz_io_fd_get_next(), and rz_return_val_if_fail.
Definition at line 310 of file io_desc.c.
References desc.
Referenced by rz_core_setup_debugger(), rz_debug_get_baddr(), and rz_io_fd_get_pid().
Definition at line 87 of file io_desc.c.
References desc, rz_io_t::files, NULL, rz_id_storage_get(), rz_io_fd_get_prev(), and rz_return_val_if_fail.
Definition at line 327 of file io_desc.c.
References desc.
Referenced by rz_debug_get_baddr(), and rz_io_fd_get_tid().
Definition at line 368 of file io_desc.c.
References rz_io_t::files, rz_id_storage_new(), rz_io_desc_fini(), and rz_return_val_if_fail.
Referenced by rz_io_close_all(), and rz_io_init().
Definition at line 261 of file io_desc.c.
References desc.
Referenced by reopen_in_malloc_cb(), and rz_io_fd_is_blockdevice().
Definition at line 268 of file io_desc.c.
References desc.
Referenced by rz_io_fd_is_chardevice(), rz_io_plugin_read_at(), and rz_io_plugin_write_at().
Definition at line 303 of file io_desc.c.
References desc.
Referenced by reopen_in_malloc_cb(), rz_core_bin_apply_maps(), rz_core_bin_load(), and rz_io_fd_is_dbg().
RZ_API RzIODesc* rz_io_desc_new | ( | RzIO * | io, |
RzIOPlugin * | plugin, | ||
const char * | uri, | ||
int | perm, | ||
int | mode, | ||
void * | data | ||
) |
Definition at line 11 of file io_desc.c.
References desc, rz_io_t::files, NULL, rz_id_storage_t::pool, rz_id_pool_grab_id(), RZ_NEW0, and strdup().
Referenced by __open(), __rap_open(), dmp_open(), find_apk_binary(), rz_io_ar_open(), rz_io_ar_open_many(), rz_io_def_mmap_open(), rz_io_zip_open(), rz_io_zip_open_many(), rzk__open(), vf_open(), and windbg_open().
Definition at line 112 of file io_desc.c.
References desc, NULL, rz_io_plugin_t::open, rz_io_desc_add(), rz_io_desc_free(), rz_io_plugin_resolve(), rz_return_val_if_fail, and strdup().
Referenced by rz_io_fd_open(), and rz_io_open_nomap().
RZ_API RzIODesc* rz_io_desc_open_plugin | ( | RzIO * | io, |
RzIOPlugin * | plugin, | ||
const char * | uri, | ||
int | perm, | ||
int | mode | ||
) |
Definition at line 139 of file io_desc.c.
References rz_io_plugin_t::check, desc, rz_io_t::files, NULL, rz_io_plugin_t::open, rz_io_desc_add(), rz_io_desc_free(), rz_return_val_if_fail, and strdup().
Definition at line 197 of file io_desc.c.
References desc, len, rz_io_cache_at(), rz_io_cache_read(), rz_io_cache_write(), rz_io_desc_cache_read(), rz_io_desc_seek(), rz_io_plugin_read(), RZ_IO_SEEK_CUR, RZ_PERM_R, seek(), ut64(), and UT64_MAX.
Referenced by rz_io_desc_read_at(), and rz_io_fd_read().
Definition at line 351 of file io_desc.c.
References addr, desc, len, rz_io_desc_read(), rz_io_desc_seek(), and RZ_IO_SEEK_SET.
Referenced by dmp_read(), read_at_kernel_virtual(), reopen_in_malloc_cb(), rz_io_fd_read_at(), and rz_io_pread_at().
Definition at line 250 of file io_desc.c.
References desc, and rz_io_desc_cache_cleanup().
Referenced by rz_io_fd_resize(), and rz_io_resize().
Definition at line 217 of file io_desc.c.
Referenced by dmp_lseek(), rz_io_desc_read(), rz_io_desc_read_at(), rz_io_desc_size(), rz_io_desc_write(), rz_io_desc_write_at(), rz_io_fd_seek(), rz_io_plugin_read_at(), rz_io_plugin_write(), rz_io_plugin_write_at(), rz_io_seek(), and rz_io_shift().
Definition at line 224 of file io_desc.c.
References desc, off, rz_io_desc_seek(), RZ_IO_SEEK_CUR, RZ_IO_SEEK_END, RZ_IO_SEEK_SET, and ut64().
Referenced by __desc_cache_cleanup_cb(), basefind_new_bin_file(), calculate_decrypt(), calculate_encrypt(), calculate_hash(), desc_list_cb(), desc_list_json_cb(), desc_list_table_cb(), desc_list_visual_cb(), init_desc_list_visual_cb(), map_multi_dex(), reopen_in_malloc_cb(), rz_core_bin_load(), rz_core_bin_whole_strings(), rz_core_cmd_subst_i(), rz_core_file_info_print(), rz_core_file_open_many(), rz_core_file_print(), rz_core_sysenv_begin(), rz_diff_file_open(), rz_diff_io_open(), rz_io_bind(), rz_io_desc_cache_read(), rz_io_desc_cache_write(), rz_io_extend_at(), rz_io_fd_size(), rz_io_is_valid_offset(), rz_io_open(), rz_io_open_at(), rz_io_size(), rz_main_rizin(), and rz_open_maps_map_fd_handler().
Definition at line 183 of file io_desc.c.
References desc, len, rz_io_desc_cache_write(), rz_io_desc_seek(), rz_io_plugin_write(), RZ_IO_SEEK_CUR, and rz_return_val_if_fail.
Referenced by rz_io_desc_write_at(), rz_io_fd_write(), and rz_io_open_buffer().
Definition at line 358 of file io_desc.c.
References addr, desc, len, rz_io_desc_seek(), rz_io_desc_write(), and RZ_IO_SEEK_SET.
Referenced by dmp_write(), reopen_in_malloc_cb(), rz_io_fd_write_at(), rz_io_pwrite_at(), and rz_open_malloc_handler().