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:
parent
bae59609e3
commit
85bcf2ed0f
Notes:
sideshowbarker
2024-07-19 18:45:18 +09:00
Author: https://github.com/awesomekling
Commit: 85bcf2ed0f
5 changed files with 34 additions and 13 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue