mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Add geteuid() and getegid().
There's no support for set-uid or set-gid executables yet so these don't actually do anything. It's just nice to get the boilerplate stuff in.
This commit is contained in:
parent
60a8144b68
commit
e4611248c4
6 changed files with 38 additions and 3 deletions
|
@ -27,6 +27,16 @@ gid_t getgid()
|
|||
return Syscall::invoke(Syscall::PosixGetgid);
|
||||
}
|
||||
|
||||
uid_t geteuid()
|
||||
{
|
||||
return Syscall::invoke(Syscall::PosixGeteuid);
|
||||
}
|
||||
|
||||
gid_t getegid()
|
||||
{
|
||||
return Syscall::invoke(Syscall::PosixGetegid);
|
||||
}
|
||||
|
||||
pid_t getpid()
|
||||
{
|
||||
return Syscall::invoke(Syscall::PosixGetpid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue