ladybird/Userland/id.cpp

13 lines
228 B
C++
Raw Normal View History

2018-10-22 15:06:22 +03:00
#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;
}