summaryrefslogtreecommitdiff
path: root/src/unistd/getpgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/getpgid.c')
-rw-r--r--src/unistd/getpgid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/getpgid.c b/src/unistd/getpgid.c
new file mode 100644
index 00000000..50d716b5
--- /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);
+}