diff options
Diffstat (limited to 'src/unistd/getpgid.c')
-rw-r--r-- | src/unistd/getpgid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/getpgid.c b/src/unistd/getpgid.c new file mode 100644 index 0000000..50d716b --- /dev/null +++ b/src/unistd/getpgid.c @@ -0,0 +1,7 @@ +#include <unistd.h> +#include "syscall.h" + +pid_t getpgid(pid_t pid) +{ + return syscall1(__NR_getpgid, pid); +} |