1 2 3 4 5 6
#include <fcntl.h> #include <syscall.h> int open_process(int pid) { RC_ERRNO(syscall(SYS_OPEN_PROCESS, pid, 0, 0, 0, 0)); }