summaryrefslogtreecommitdiff
path: root/tests/getgid.c
blob: 2e060390e996cc4f27e3dc306f703d15aa8cd513 (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_getgid

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

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

#else

SKIP_MAIN_UNDEFINED("__NR_getgid")

#endif