mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07:44 +00:00
Import very modest Userland.
This commit is contained in:
parent
4cbf079a17
commit
63764b3a65
23 changed files with 81 additions and 27 deletions
12
Userland/id.cpp
Normal file
12
Userland/id.cpp
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue