blob: 6754c2fe3385e067d3b87c1ad2e72b35875e8c4d [file] [log] [blame]
Dmitry V. Levin4f6d95d2016-04-18 15:22:34 +00001#include "tests.h"
2#include <sys/syscall.h>
3
4#ifdef __NR_setresgid
5
6# define SYSCALL_NR __NR_setresgid
7# define SYSCALL_NAME "setresgid"
8
9# if defined __NR_setresgid32 && __NR_setresgid != __NR_setresgid32
10# define UGID_TYPE short
11# define GETUGID syscall(__NR_getegid)
12# define CHECK_OVERFLOWUGID(arg) check_overflowgid(arg)
13# else
14# define UGID_TYPE int
15# define GETUGID getegid()
16# define CHECK_OVERFLOWUGID(arg)
17# endif
18
19# include "setresugid.c"
20
21#else
22
23SKIP_MAIN_UNDEFINED("__NR_setresgid")
24
25#endif