10 int bufsz = (1024 * 64);
17 buf[bufsz - 1] =
'\0';
18 int len = strlen((
const char *)
buf);
38 for (
i = 1;
i < argc;
i++) {
42 eprintf(
"Error: RZ_PIPE_(IN|OUT) environment not set\n");
43 eprintf(
"Usage: rizin -c '!*rzp x' # run commands via rzpipe\n");
54 if (argc > 0 && strstr(utf8_argv[0],
"rzp")) {
static void rz_cmd(int in, int out, const char *cmd)
int MAIN_NAME(int argc, const ARGV_TYPE **argv)
static int rz_main_rzpipe(int argc, const char **argv)
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API int rz_main_rizin(int argc, const char **argv)
void * malloc(size_t size)
static static fork const void static count static fd const char const char static newpath char char argv
#define ARGV_TYPE_TO_UTF8(argc, argv)
#define FREE_UTF8_ARGV(argc, utf8_argv)
RZ_API char * rz_sys_getenv(const char *key)
Get the value of an environment variable named key or NULL if none exists.
#define rz_xread(fd, buf, count)
#define rz_xwrite(fd, buf, count)