summaryrefslogtreecommitdiff
path: root/LibC
diff options
context:
space:
mode:
Diffstat (limited to 'LibC')
-rw-r--r--LibC/unistd.cpp10
-rw-r--r--LibC/unistd.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp
index 86c9ce237c..7d1b65f1af 100644
--- a/LibC/unistd.cpp
+++ b/LibC/unistd.cpp
@@ -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);
diff --git a/LibC/unistd.h b/LibC/unistd.h
index de1fd85180..f304c555fc 100644
--- a/LibC/unistd.h
+++ b/LibC/unistd.h
@@ -15,6 +15,8 @@ pid_t setsid();
int setpgid(pid_t pid, pid_t pgid);
pid_t getpgid(pid_t);
pid_t getpgrp();
+uid_t geteuid();
+gid_t getegid();
uid_t getuid();
gid_t getgid();
pid_t getpid();