Lines Matching refs:pid
27 unsigned long os_process_pc(int pid) in os_process_pc() argument
33 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
59 int os_process_parent(int pid) in os_process_parent() argument
65 if (pid == -1) in os_process_parent()
68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
93 void os_alarm_process(int pid) in os_alarm_process() argument
95 kill(pid, SIGALRM); in os_alarm_process()
98 void os_stop_process(int pid) in os_stop_process() argument
100 kill(pid, SIGSTOP); in os_stop_process()
103 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
105 kill(pid, SIGKILL); in os_kill_process()
107 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
115 void os_kill_ptraced_process(int pid, int reap_child) in os_kill_ptraced_process() argument
117 kill(pid, SIGKILL); in os_kill_ptraced_process()
118 ptrace(PTRACE_KILL, pid); in os_kill_ptraced_process()
119 ptrace(PTRACE_CONT, pid); in os_kill_ptraced_process()
121 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_ptraced_process()