Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | RZP_PID(x) (((RzPipe *)(x)->data)->pid) |
#define | RZP_INPUT(x) (((RzPipe *)(x)->data)->input[0]) |
#define | RZP_OUTPUT(x) (((RzPipe *)(x)->data)->output[1]) |
Functions | |
static void | env (const char *s, int f) |
RZ_API int | rzpipe_write (RzPipe *rzpipe, const char *str) |
RZ_API char * | rzpipe_read (RzPipe *rzpipe) |
RZ_API int | rzpipe_close (RzPipe *rzpipe) |
static RzPipe * | rzp_open_spawn (RzPipe *rzp, const char *cmd) |
static RzPipe * | rzpipe_new (void) |
RZ_API RzPipe * | rzpipe_open_corebind (RzCoreBind *coreb) |
RZ_API RzPipe * | rzpipe_open_dl (const char *libr_path) |
RZ_API RzPipe * | rzpipe_open (const char *cmd) |
RZ_API char * | rzpipe_cmd (RzPipe *rzp, const char *str) |
RZ_API char * | rzpipe_cmdf (RzPipe *rzp, const char *fmt,...) |
Definition at line 29 of file rzpipe.c.
References a, f, free(), rz_str_newf(), rz_sys_setenv(), and s.
Referenced by rzpipe_open().
Definition at line 169 of file rzpipe.c.
References done, eprintf, free(), in, RzPipe::input, NULL, out, RzPipe::output, RZ_FREE, rz_return_val_if_fail, and rz_sys_getenv().
Referenced by rzpipe_open().
Definition at line 110 of file rzpipe.c.
References RzPipe::child, free(), RzPipe::input, kill, NULL, RzPipe::output, and rz_sys_pipe_close().
Referenced by __close(), and rzpipe_open().
Definition at line 316 of file rzpipe.c.
References NULL, rz_return_val_if_fail, rzpipe_read(), rzpipe_write(), and cmd_descs_generate::str.
Referenced by rzpipe_cmdf().
|
static |
Definition at line 197 of file rzpipe.c.
References RzPipe::child, RzPipe::input, RzPipe::output, and RZ_NEW0.
Referenced by rzpipe_open(), rzpipe_open_corebind(), and rzpipe_open_dl().
Definition at line 235 of file rzpipe.c.
References RzPipe::child, close, cmd, dup2, env(), eprintf, test-lz4-list::exit, RzPipe::input, int, NULL, RzPipe::output, r, read(), RZ_STR_ISEMPTY, rz_sys_fork(), rz_sys_pipe(), rz_sys_pipe_close(), rz_sys_system(), rz_xwrite, rzp_open_spawn(), rzpipe_close(), and rzpipe_new().
Referenced by __open().
RZ_API RzPipe* rzpipe_open_corebind | ( | RzCoreBind * | coreb | ) |
Definition at line 209 of file rzpipe.c.
References RzPipe::coreb, memcpy(), and rzpipe_new().
Definition at line 217 of file rzpipe.c.
References c, cmd, rz_core_bind_t::cmdstr, rz_core_bind_t::core, RzPipe::coreb, eprintf, NULL, rz_lib_dl_open(), rz_lib_dl_sym(), and rzpipe_new().
Definition at line 61 of file rzpipe.c.
References calloc(), DWORD, FALSE, i, NULL, RzPipe::output, read(), realloc(), and RZ_FREE.
Referenced by __read(), __system(), __write(), and rzpipe_cmd().
Definition at line 36 of file rzpipe.c.
References cmd, DWORD, free(), RzPipe::input, len, malloc(), memcpy(), NULL, cmd_descs_generate::str, and write.
Referenced by __read(), __system(), __write(), and rzpipe_cmd().