summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/setpgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/setpgrp.c')
-rw-r--r--libc/sysdeps/linux/common/setpgrp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/setpgrp.c b/libc/sysdeps/linux/common/setpgrp.c
new file mode 100644
index 000000000..f1f27d18f
--- /dev/null
+++ b/libc/sysdeps/linux/common/setpgrp.c
@@ -0,0 +1,11 @@
+#include <syscall.h>
+#include <unistd.h>
+
+static inline
+_syscall2(int,setpgid,pid_t,pid,pid_t,pgid);
+
+int
+setpgrp(void)
+{
+ return setpgid(0,0);
+}