commit fe8d19617b5e94f4cd52a0a8928789c3c008851a
parent 12e10e27586d3a9bc45621d63fa3a9286ddff1d6
Author: Armin Preiml <apreiml@strohwolke.at>
Date: Wed, 23 Aug 2023 08:53:20 +0200
rt: add getpgid syscall
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha
@@ -259,6 +259,10 @@ export fn fork() (int | void | errno) = clone(null, SIGCHLD, null, null, 0);
export fn getpid() int = syscall0(SYS_getpid): int;
+export fn getpgid(pid: int) (int | errno) = {
+ return wrap_return(syscall1(SYS_getpgid, pid: u64))?: int;
+};
+
export fn wait4(
pid: int,
wstatus: nullable *int,