Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Macros | |
#define | START_ENV_CHAR "${" |
#define | END_ENV_CHAR "}" |
Functions | |
static char * | config_path (RzCore *core) |
static const char * | system_apply_env_var (const char *env, const char *value, const char *arg, char **alloc_str) |
static int | system_exec (RzCore *core, int argc, const char **argv, char **output, int *length, int *ret) |
static RzCmdStatus | system_common_handler (RzCore *core, bool force_rzcons, int argc, const char **argv) |
RZ_IPI RzCmdStatus | rz_system_handler (RzCore *core, int argc, const char **argv) |
RZ_IPI RzCmdStatus | rz_system_to_cons_handler (RzCore *core, int argc, const char **argv) |
#define END_ENV_CHAR "}" |
Definition at line 13 of file cmd_system.c.
#define START_ENV_CHAR "${" |
Definition at line 12 of file cmd_system.c.
|
static |
Definition at line 16 of file cmd_system.c.
References close, rz_core_t::config, fd, free(), NULL, path, rz_config_serialize(), rz_file_mkstemp(), sdb_free(), sdb_new(), and sdb_sync().
Referenced by rz_load_panels_layout(), rz_save_panels_layout(), and system_exec().
RZ_IPI RzCmdStatus rz_system_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 218 of file cmd_system.c.
References argv, and system_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_system_to_cons_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 222 of file cmd_system.c.
References argv, and system_common_handler().
Referenced by rzshell_cmddescs_init().
|
static |
Definition at line 38 of file cmd_system.c.
References arg(), env, len, rz_str_replace(), strdup(), and value.
Referenced by system_exec().
|
static |
Definition at line 187 of file cmd_system.c.
References argv, dest, test_evm::end, free(), rz_core_t::is_pipe, length, NULL, rz_core_t::num, out, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_memcat(), rz_cons_sleep_begin(), rz_cons_sleep_end(), src, system_exec(), ut64(), and rz_num_t::value.
Referenced by rz_system_handler(), and rz_system_to_cons_handler().
|
static |
Definition at line 54 of file cmd_system.c.
References args, argv, rz_asm_t::big_endian, rz_core_t::blocksize, rz_core_t::config, config_path(), END_ENV_CHAR, rz_core_file_t::fd, rz_core_t::file, rz_subprocess_opt_t::file, free(), i, rz_core_t::io, length, NULL, rz_core_t::offset, output, PFMT64u, proc, rz_core_t::rasm, RZ_ARRAY_SIZE, rz_config_get(), rz_file_rm(), rz_io_fd_size(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_LOG_ERROR, RZ_NEWS0, rz_str_bool(), rz_str_get(), rz_strf, rz_subprocess_fini(), rz_subprocess_free(), rz_subprocess_init(), rz_subprocess_out(), RZ_SUBPROCESS_PIPE_CREATE, RZ_SUBPROCESS_PIPE_NONE, rz_subprocess_ret(), rz_subprocess_start_opt(), rz_subprocess_wait(), START_ENV_CHAR, system_apply_env_var(), and UT64_MAX.
Referenced by system_common_handler().