summaryrefslogtreecommitdiffstats
path: root/usr/klibc/tests/idtest.c
blob: c3c44479c57717d4580a2d5731701daeee0ea4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <unistd.h>

int main(void)
{
	printf("pid   = %u\n", getpid());
	printf("ppid  = %u\n", getppid());
	printf("uid   = %u\n", getuid());
	printf("euid  = %u\n", geteuid());
	printf("gid   = %u\n", getgid());
	printf("egid  = %u\n", getegid());
	sleep(10);
	return 0;
}