26 r = pthread_create(&inst->
th,
NULL, (
void *(*)(
void *))
th_run, inst);
39 pthread_join(inst->
th,
NULL);
91 if (inst->
th == pthread_self()) {
109 if (inst->
th == pthread_self()) {
112 child_callback(child_callback_user);
121 inst->
request.
fork.child_callback = child_callback;
122 inst->
request.
fork.child_callback_user = child_callback_user;
131 if (inst->
th == pthread_self()) {
static static sync static getppid static getegid const char static filename request
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid ptrace
int sem_wait(UV_PLATFORM_SEM_T *semid)
int sem_destroy(UV_PLATFORM_SEM_T *semid)
int sem_post(UV_PLATFORM_SEM_T *semid)
int sem_init(UV_PLATFORM_SEM_T *semid, int pshared, unsigned int value)
static void wrap_ptrace(ptrace_wrap_instance *inst)
void * ptrace_wrap_func(ptrace_wrap_instance *inst, ptrace_wrap_func_func func, void *user)
void ptrace_wrap_instance_stop(ptrace_wrap_instance *inst)
pid_t ptrace_wrap_fork(ptrace_wrap_instance *inst, void(*child_callback)(void *), void *child_callback_user)
long ptrace_wrap(ptrace_wrap_instance *inst, ptrace_wrap_ptrace_request request, pid_t pid, void *addr, void *data)
int ptrace_wrap_instance_start(ptrace_wrap_instance *inst)
static void * th_run(ptrace_wrap_instance *inst)
static void wrap_func(ptrace_wrap_instance *inst)
static void wrap_fork(ptrace_wrap_instance *inst)
int ptrace_wrap_ptrace_request
@ PTRACE_WRAP_REQUEST_TYPE_STOP
@ PTRACE_WRAP_REQUEST_TYPE_PTRACE
@ PTRACE_WRAP_REQUEST_TYPE_FORK
@ PTRACE_WRAP_REQUEST_TYPE_FUNC
void *(* ptrace_wrap_func_func)(void *)
RZ_API int rz_sys_fork(void)
ptrace_wrap_request request
struct ptrace_wrap_request_t::@423::@425 ptrace
ptrace_wrap_func_func func
ptrace_wrap_request_type type
struct ptrace_wrap_request_t::@423::@426 fork