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