blob: e1da7862d7fc991be2443ac3bd509b54c3020f54 [file] [log] [blame]
Elliott Hughesd35df492017-02-15 15:19:05 -08001#include "tests.h"
2#include <asm/unistd.h>
3
4#ifdef __NR_setregid
5
6# define SYSCALL_NR __NR_setregid
7# define SYSCALL_NAME "setregid"
8
9# if defined __NR_setregid32 && __NR_setregid != __NR_setregid32
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 "setreugid.c"
20
21#else
22
23SKIP_MAIN_UNDEFINED("__NR_setregid")
24
25#endif