summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-02 12:56:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-02 12:56:51 +0100
commitd8f0dd6f3b36987c2a8021e16341dda16cbb7ab1 (patch)
tree29f86d44683f9c11c51d8ef8a4e29da3c7bdd906 /Kernel/Syscall.cpp
parent05565bad5803fd09c3fb003f92f620b5e6ae11b1 (diff)
downloadserenity-d8f0dd6f3b36987c2a8021e16341dda16cbb7ab1.zip
Start working on sessions and process groups.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r--Kernel/Syscall.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp
index 2e24c7ec29..e8163a4465 100644
--- a/Kernel/Syscall.cpp
+++ b/Kernel/Syscall.cpp
@@ -114,6 +114,16 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
return current->sys$readlink((const char*)arg1, (char*)arg2, (size_t)arg3);
case Syscall::PosixTtynameR:
return current->sys$ttyname_r((int)arg1, (char*)arg2, (size_t)arg3);
+ case Syscall::PosixSetsid:
+ return current->sys$setsid();
+ case Syscall::PosixGetsid:
+ return current->sys$getsid((pid_t)arg1);
+ case Syscall::PosixSetpgid:
+ return current->sys$setpgid((pid_t)arg1, (pid_t)arg2);
+ case Syscall::PosixGetpgid:
+ return current->sys$getpgid((pid_t)arg1);
+ case Syscall::PosixGetpgrp:
+ return current->sys$getpgrp();
default:
kprintf("<%u> int0x80: Unknown function %x requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
break;