Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_crypto.h>
#include <rz_config.h>
#include <rz_cons.h>
#include <rz_core.h>
#include <rz_io.h>
#include <rz_socket.h>
#include "../core_private.h"
Go to the source code of this file.
Macros | |
#define | WSEEK(x, y) |
#define WSEEK | ( | x, | |
y | |||
) |
Definition at line 92 of file cmd_write.c.
Definition at line 78 of file cmd_write.c.
References cmd_write_fail(), rz_core_t::io, rz_core_t::offset, rz_core_write_at(), rz_io_read_at(), ut64(), and val.
Referenced by rz_write_bits_handler(), and rz_write_unset_bits_handler().
|
static |
Definition at line 12 of file cmd_write.c.
References eprintf, rz_core_t::num, and rz_num_t::value.
Referenced by cmd_write_bits().
|
static |
Definition at line 96 of file cmd_write.c.
References rz_num_calc_t::errors, rz_num_t::nc, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_value_at(), RZ_LOG_ERROR, rz_num_math(), ut64(), and value.
Referenced by rz_write_value1_handler(), rz_write_value2_handler(), rz_write_value4_handler(), rz_write_value8_handler(), and rz_write_value_handler().
|
static |
Definition at line 17 of file cmd_write.c.
References rz_core_t::block, rz_core_t::blocksize, eprintf, free(), key, malloc(), NULL, rz_core_t::offset, PFMT64x, rz_core_write_at(), rz_crypto_final(), rz_crypto_free(), rz_crypto_get_output(), rz_crypto_new(), rz_crypto_set_iv(), rz_crypto_set_key(), rz_crypto_update(), rz_crypto_use(), rz_hex_str2bin(), and strdup().
Referenced by rz_write_op_decrypt_handler(), and rz_write_op_encrypt_handler().
Definition at line 134 of file cmd_write.c.
References calloc(), dst, eprintf, free(), rz_core_t::io, len, PFMT64x, rz_core_block_read(), rz_io_read_at(), rz_io_write_at(), and src.
Referenced by rz_write_from_io_handler(), and rz_write_from_io_xchg_handler().
RZ_IPI RzCmdStatus rz_write_1_dec_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 333 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_1_inc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 330 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_2_dec_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 340 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_2_inc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 337 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_4_dec_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 347 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_4_inc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 344 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_8_dec_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 354 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_8_inc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 351 of file cmd_write.c.
References argv, and w_incdec_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_assembly_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 497 of file cmd_write.c.
References argv, free(), instructions, NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_assembly(), rz_file_slurp(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_assembly_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 477 of file cmd_write.c.
References argv, free(), instructions, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_assembly(), and rz_str_array_join().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_assembly_inside_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 487 of file cmd_write.c.
References argv, free(), instructions, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_assembly_fill(), and rz_str_array_join().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_assembly_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 508 of file cmd_write.c.
References argv, bool2status(), and rz_core_hack().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_base64_decode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 130 of file cmd_write.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_write_base64d_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_base64_encode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 126 of file cmd_write.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_write_base64_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 297 of file cmd_write.c.
References argv, cmd_write_bits(), rz_core_t::num, RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_block_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 512 of file cmd_write.c.
References argv, bool2status(), free(), hex, len, rz_core_t::offset, RZ_CMD_STATUS_ERROR, rz_core_write_block(), rz_hex_str2bin(), RZ_LOG_ERROR, and RZ_NEWS0.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_cache_commit_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 582 of file cmd_write.c.
References rz_core_t::io, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_cache_commit(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_cache_commit_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 575 of file cmd_write.c.
References argv, rz_core_t::blocksize, from, rz_core_t::io, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_io_cache_commit(), rz_num_math(), to, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_cache_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 557 of file cmd_write.c.
References rz_core_io_cache_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_cache_remove_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 570 of file cmd_write.c.
References rz_io_t::cached, rz_core_t::io, RZ_CMD_STATUS_OK, and rz_io_cache_reset().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_cache_remove_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 561 of file cmd_write.c.
References argv, rz_core_t::blocksize, from, rz_core_t::io, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_cache_invalidate(), RZ_LOG_INFO, rz_num_math(), to, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_debruijn_find_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 785 of file cmd_write.c.
References argv, rz_core_t::config, NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_cons_printf(), rz_debruijn_offset(), RZ_LOG_ERROR, rz_num_math(), ut64(), and value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_debruijn_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 769 of file cmd_write.c.
References argv, bool2status(), free(), int, len, NULL, rz_core_t::num, rz_core_t::offset, p, RZ_CMD_STATUS_ERROR, rz_core_write_string_at(), rz_debruijn_pattern(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_duplicate_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 543 of file cmd_write.c.
References argv, bool2status(), int, len, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, rz_core_write_duplicate_at(), RZ_LOG_ERROR, rz_num_math(), src, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_extend_hexbytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 642 of file cmd_write.c.
References addr, argv, bool2status(), bytes, free(), len, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, rz_core_extend_at(), rz_core_write_at(), rz_hex_str2bin(), RZ_LOG_ERROR, RZ_NEWS, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_extend_shift_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 632 of file cmd_write.c.
References argv, bool2status(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, rz_core_shift_block(), RZ_LOG_ERROR, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_extend_zero_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 626 of file cmd_write.c.
References addr, argv, bool2status(), len, rz_core_t::num, rz_core_t::offset, rz_core_extend_at(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_from_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 194 of file cmd_write.c.
References argv, rz_core_t::config, eprintf, err, rz_core_file_t::fd, rz_core_t::file, free(), rz_core_t::io, NULL, rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_core_block_read(), rz_core_editor(), rz_file_slurp(), rz_io_use_fd(), rz_io_write_at(), RZ_MIN, rz_num_math(), ut64(), UT64_ADD_OVFCHK, UT64_MAX, and WSEEK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_from_io_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 155 of file cmd_write.c.
References addr, argv, ioMemcpy(), len, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_from_io_xchg_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 162 of file cmd_write.c.
References argv, dst, eprintf, err, free(), rz_core_t::io, ioMemcpy(), len, rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_read(), rz_io_read_at(), rz_io_write_at(), RZ_NEWS0, rz_num_math(), src, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_from_socket_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 242 of file cmd_write.c.
References argv, rz_core_t::blocksize, c, done, eprintf, err, free(), rz_core_t::io, NULL, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_io_write_at(), RZ_NEWS0, rz_num_math(), rz_socket_accept(), rz_socket_free(), rz_socket_listen(), rz_socket_new(), rz_socket_read(), rz_str_split(), s, strdup(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 431 of file cmd_write.c.
References argv, bool2status(), rz_core_t::offset, and rz_core_write_string_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_hex_from_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 447 of file cmd_write.c.
References argv, free(), NULL, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_editor(), rz_core_write_hexpair(), rz_file_exists(), rz_file_slurp(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_hex_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 443 of file cmd_write.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_write_hexpair().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_length_string_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 553 of file cmd_write.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_write_length_string_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_mask_reset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 539 of file cmd_write.c.
References bool2status(), rz_core_t::io, NULL, and rz_io_set_write_mask().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_mask_set_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 528 of file cmd_write.c.
References argv, bool2status(), free(), rz_core_t::io, RZ_CMD_STATUS_ERROR, rz_hex_str2bin(), rz_io_set_write_mask(), and RZ_NEWS.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_2byteswap_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 667 of file cmd_write.c.
References bool2status(), NULL, rz_core_t::offset, rz_core_write_block_op_at(), and RZ_CORE_WRITE_OP_BYTESWAP2.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_4byteswap_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 671 of file cmd_write.c.
References bool2status(), NULL, rz_core_t::offset, rz_core_write_block_op_at(), and RZ_CORE_WRITE_OP_BYTESWAP4.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_8byteswap_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 675 of file cmd_write.c.
References bool2status(), NULL, rz_core_t::offset, rz_core_write_block_op_at(), and RZ_CORE_WRITE_OP_BYTESWAP8.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 693 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_ADD, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_and_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 713 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_AND, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_decrypt_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 736 of file cmd_write.c.
References argv, bool2status(), encrypt_or_decrypt_block(), and key.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_div_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 705 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_DIV, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_encrypt_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 729 of file cmd_write.c.
References argv, bool2status(), encrypt_or_decrypt_block(), and key.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_mul_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 701 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_MUL, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_or_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 717 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_OR, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_sequence_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 743 of file cmd_write.c.
References argv, bool2status(), from, int, NULL, rz_core_t::offset, PFMT64d, RZ_CMD_STATUS_ERROR, rz_core_write_seq_at(), RZ_LOG_ERROR, rz_num_math(), step(), to, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_shl_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 721 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_SHIFT_LEFT, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_shr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 725 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_SHIFT_RIGHT, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_sub_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 697 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_SUB, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_op_xor_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 709 of file cmd_write.c.
References argv, RZ_CORE_WRITE_OP_XOR, and write_op_val().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_pcache_commit_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 607 of file cmd_write.c.
References argv, bool2status(), desc, rz_io_t::desc, fd, int, rz_core_t::io, NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, rz_io_desc_cache_commit(), rz_io_desc_get(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_pcache_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 588 of file cmd_write.c.
References argv, desc, rz_io_t::desc, fd, int, rz_core_t::io, NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, rz_core_io_pcache_print(), rz_io_desc_get(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_random_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 422 of file cmd_write.c.
References argv, length, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_random_at(), RZ_LOG_ERROR, rz_num_is_valid_input(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_unified_patch_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 358 of file cmd_write.c.
References argv, dst, eprintf, free(), i, len, setup::line, NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, rz_core_write_at(), rz_file_slurp(), rz_hex_str2bin(), RZ_LOG_ERROR, RZ_NEWS, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_unset_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 302 of file cmd_write.c.
References argv, cmd_write_bits(), rz_core_t::num, RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_value1_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 110 of file cmd_write.c.
References argv, and common_write_value_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_value2_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 114 of file cmd_write.c.
References argv, and common_write_value_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_value4_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 118 of file cmd_write.c.
References argv, and common_write_value_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_value8_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 122 of file cmd_write.c.
References argv, and common_write_value_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_value_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 106 of file cmd_write.c.
References argv, and common_write_value_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_wide_string_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 439 of file cmd_write.c.
References argv, bool2status(), rz_core_t::offset, and rz_core_write_string_wide_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_zero_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 307 of file cmd_write.c.
References argv, free(), len, rz_core_t::num, rz_core_t::offset, PFMT64d, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_at(), RZ_LOG_ERROR, RZ_NEWS0, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_write_zero_string_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 435 of file cmd_write.c.
References argv, bool2status(), rz_core_t::offset, and rz_core_write_string_zero_at().
Referenced by rzshell_cmddescs_init().
|
static |
Definition at line 321 of file cmd_write.c.
References argv, command, rz_core_t::num, num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_write_value_inc_at(), rz_num_math(), and st64.
Referenced by rz_write_1_dec_handler(), rz_write_1_inc_handler(), rz_write_2_dec_handler(), rz_write_2_inc_handler(), rz_write_4_dec_handler(), rz_write_4_inc_handler(), rz_write_8_dec_handler(), and rz_write_8_inc_handler().
|
static |
Definition at line 679 of file cmd_write.c.
References argv, bool2status(), free(), hex, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_WRONG_ARGS, rz_core_write_block_op_at(), rz_hex_str2bin(), RZ_NEWS, and rz_return_val_if_fail.
Referenced by rz_write_op_add_handler(), rz_write_op_and_handler(), rz_write_op_div_handler(), rz_write_op_mul_handler(), rz_write_op_or_handler(), rz_write_op_shl_handler(), rz_write_op_shr_handler(), rz_write_op_sub_handler(), and rz_write_op_xor_handler().