1 #include <unistd.h> 2 #include "syscall.h" 3 getpgid(pid_t pid)4 pid_t getpgid(pid_t pid) 5 { 6 return syscall(SYS_getpgid, pid); 7 } 8