Import very modest Userland.

This commit is contained in:
Andreas Kling 2018-10-22 14:06:22 +02:00
commit 63764b3a65
Notes: sideshowbarker 2024-07-19 18:45:13 +09:00
23 changed files with 81 additions and 27 deletions

12
Userland/id.cpp Normal file
View file

@ -0,0 +1,12 @@
#include <LibC/unistd.h>
#include <LibC/stdio.h>
int main(int c, char** v)
{
uid_t uid = getuid();
gid_t gid = getgid();
pid_t pid = getpid();
printf("uid=%u, gid=%u, pid=%u\n", uid, gid, pid);
return 0;
}