banan-os/userspace/id/main.cpp

8 lines
144 B
C++

#include <stdio.h>
#include <unistd.h>
int main()
{
printf("uid %u, gid %u, euid %u, egid %u\n", getuid(), getgid(), geteuid(), getegid());
}