summaryrefslogtreecommitdiff
path: root/tests/getgid.c
blob: e6819c883e43b64eb2564c6d8bf731d6b27c69ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2016-2018 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "tests.h"
#include "scno.h"

#if defined __NR_getgid && (!defined __NR_getxgid || __NR_getxgid != __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