1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Add getgid() and getpid() syscalls. Prep for LibC.

This commit is contained in:
Andreas Kling 2018-10-22 13:55:11 +02:00
parent bae59609e3
commit 85bcf2ed0f
Notes: sideshowbarker 2024-07-19 18:45:18 +09:00
5 changed files with 34 additions and 13 deletions

View file

@ -551,6 +551,16 @@ uid_t Task::sys$getuid()
return m_uid;
}
gid_t Task::sys$getgid()
{
return m_gid;
}
pid_t Task::sys$getpid()
{
return m_pid;
}
bool Task::acceptsMessageFrom(Task& peer)
{
return !ipc.msg.isValid() && (ipc.src == IPC::Handle::Any || ipc.src == peer.handle());