summaryrefslogtreecommitdiff
path: root/tests/geteuid.c
blob: ef8269f97243fe51a40d6f6b852bd40e22204e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "tests.h"
#include <asm/unistd.h>

#ifdef __NR_geteuid

# include <stdio.h>
# include <unistd.h>

int
main(void)
{
	printf("geteuid() = %ld\n", syscall(__NR_geteuid));
	return 0;
}

#else

SKIP_MAIN_UNDEFINED("__NR_geteuid")

#endif