xref: /aosp_15_r20/external/strace/tests-m32/setuid32.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
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_setuid32
5*cf84ac9aSAndroid Build Coastguard Worker 
6*cf84ac9aSAndroid Build Coastguard Worker # define SYSCALL_NR	__NR_setuid32
7*cf84ac9aSAndroid Build Coastguard Worker # define SYSCALL_NAME	"setuid32"
8*cf84ac9aSAndroid Build Coastguard Worker # define UGID_TYPE	int
9*cf84ac9aSAndroid Build Coastguard Worker # define GETUGID	geteuid()
10*cf84ac9aSAndroid Build Coastguard Worker # define CHECK_OVERFLOWUGID(arg)
11*cf84ac9aSAndroid Build Coastguard Worker # include "setugid.c"
12*cf84ac9aSAndroid Build Coastguard Worker 
13*cf84ac9aSAndroid Build Coastguard Worker #else
14*cf84ac9aSAndroid Build Coastguard Worker 
15*cf84ac9aSAndroid Build Coastguard Worker SKIP_MAIN_UNDEFINED("__NR_setuid32")
16*cf84ac9aSAndroid Build Coastguard Worker 
17*cf84ac9aSAndroid Build Coastguard Worker #endif
18