1*cf84ac9aSAndroid Build Coastguard Worker #include "tests.h" 2*cf84ac9aSAndroid Build Coastguard Worker #include <asm/unistd.h> 3*cf84ac9aSAndroid Build Coastguard Worker 4*cf84ac9aSAndroid Build Coastguard Worker #ifdef __NR_setfsgid 5*cf84ac9aSAndroid Build Coastguard Worker 6*cf84ac9aSAndroid Build Coastguard Worker # define SYSCALL_NR __NR_setfsgid 7*cf84ac9aSAndroid Build Coastguard Worker # define SYSCALL_NAME "setfsgid" 8*cf84ac9aSAndroid Build Coastguard Worker 9*cf84ac9aSAndroid Build Coastguard Worker # if defined __NR_setfsgid32 && __NR_setfsgid != __NR_setfsgid32 10*cf84ac9aSAndroid Build Coastguard Worker # define UGID_TYPE short 11*cf84ac9aSAndroid Build Coastguard Worker # define GETUGID syscall(__NR_getegid) 12*cf84ac9aSAndroid Build Coastguard Worker # else 13*cf84ac9aSAndroid Build Coastguard Worker # define UGID_TYPE int 14*cf84ac9aSAndroid Build Coastguard Worker # define GETUGID getegid() 15*cf84ac9aSAndroid Build Coastguard Worker # endif 16*cf84ac9aSAndroid Build Coastguard Worker 17*cf84ac9aSAndroid Build Coastguard Worker # include "setfsugid.c" 18*cf84ac9aSAndroid Build Coastguard Worker 19*cf84ac9aSAndroid Build Coastguard Worker #else 20*cf84ac9aSAndroid Build Coastguard Worker 21*cf84ac9aSAndroid Build Coastguard Worker SKIP_MAIN_UNDEFINED("__NR_setfsgid") 22*cf84ac9aSAndroid Build Coastguard Worker 23*cf84ac9aSAndroid Build Coastguard Worker #endif 24