#include // for __syscall_1, syscall #include // for pid_t, getsid pid_t getsid(pid_t pid) { return syscall(getsid, pid); }