blob: 871f4b35f7252a4b35bdd39a38e8d76794abc7f2 [file] [log] [blame]
Dmitry V. Levinfba762d2016-04-18 16:08:38 +00001#include "tests.h"
Dmitry V. Levin6a2f43c2016-08-09 14:38:29 +00002#include <asm/unistd.h>
Dmitry V. Levinfba762d2016-04-18 16:08:38 +00003
4#ifdef __NR_setfsgid
5
6# define SYSCALL_NR __NR_setfsgid
7# define SYSCALL_NAME "setfsgid"
8
9# if defined __NR_setfsgid32 && __NR_setfsgid != __NR_setfsgid32
10# define UGID_TYPE short
11# define GETUGID syscall(__NR_getegid)
12# else
13# define UGID_TYPE int
14# define GETUGID getegid()
15# endif
16
17# include "setfsugid.c"
18
19#else
20
21SKIP_MAIN_UNDEFINED("__NR_setfsgid")
22
23#endif