Home | History | Annotate | Download | only in tests-mx32
      1 #include "tests.h"
      2 #include <asm/unistd.h>
      3 
      4 #ifdef __NR_setuid
      5 
      6 # define SYSCALL_NR	__NR_setuid
      7 # define SYSCALL_NAME	"setuid"
      8 
      9 # if defined __NR_setuid32 && __NR_setuid != __NR_setuid32
     10 #  define UGID_TYPE	short
     11 #  define GETUGID	syscall(__NR_geteuid)
     12 #  define CHECK_OVERFLOWUGID(arg)	check_overflowuid(arg)
     13 # else
     14 #  define UGID_TYPE	int
     15 #  define GETUGID	geteuid()
     16 #  define CHECK_OVERFLOWUGID(arg)
     17 # endif
     18 
     19 # include "setugid.c"
     20 
     21 #else
     22 
     23 SKIP_MAIN_UNDEFINED("__NR_setuid")
     24 
     25 #endif
     26