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