diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-22 13:55:11 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-22 13:55:11 +0200 |
commit | 85bcf2ed0f082f4d3bfd83f5cf6c5ac8e9cb4d25 (patch) | |
tree | 311c135c56aad8277f20a1cc74fe8e0913e94d30 /Kernel/Syscall.cpp | |
parent | bae59609e3a71c046c9bf4095b81d7ea825d1729 (diff) | |
download | serenity-85bcf2ed0f082f4d3bfd83f5cf6c5ac8e9cb4d25.zip |
Add getgid() and getpid() syscalls. Prep for LibC.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r-- | Kernel/Syscall.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index 63bea39db3..7ad1f2507d 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -77,6 +77,10 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3) return current->sys$kill((pid_t)arg1, (int)arg2); case Syscall::PosixGetuid: return current->sys$getuid(); + case Syscall::PosixGetgid: + return current->sys$getgid(); + case Syscall::PosixGetpid: + return current->sys$getpid(); case Syscall::PosixExit: current->sys$exit((int)arg1); ASSERT_NOT_REACHED(); |