aboutsummaryrefslogtreecommitdiff
path: root/sys/src/setpgid.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-11-18 17:49:04 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-11-18 17:49:04 -0800
commit835dea0eb6333a9ef452881ea073bfe59d14096a (patch)
tree525c3b4fe8b281813d7234fcc8871c63c627cc19 /sys/src/setpgid.c
parent5bcc08d92ae9345d6863f555a3dd9ec960e0860f (diff)
feat: continued filling out system layer
Diffstat (limited to 'sys/src/setpgid.c')
-rw-r--r--sys/src/setpgid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/src/setpgid.c b/sys/src/setpgid.c
new file mode 100644
index 0000000..b77d696
--- /dev/null
+++ b/sys/src/setpgid.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+int
+sys·setpgid(int pid, int pgid)
+{
+ long ret = syscall(·SetPGid, pid, pgid);
+ return error(ret);
+}