#include "asm/unistd_64.h" // for __NR_getsid #include // for __syscall_1, syscall #include // for pid_t, getsid pid_t getsid(pid_t pid) { return syscall(getsid, pid); }