00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __RSBAC_UNISTD_I386_H
00009 #define __RSBAC_UNISTD_I386_H
00010
00011 #ifndef __NR_security
00012 #define __NR_security 223
00013 #endif
00014 #define __NR_rsbac __NR_security
00015
00016 #define rsbac_syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \
00017 type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
00018 { \
00019 long __res; \
00020 __asm__ volatile ("int $0x80" \
00021 : "=a" (__res) \
00022 : "0" (__NR_##name),"D" ((long)(arg1)),"c" ((long)(arg2)), \
00023 "d" ((long)(arg3)),"S" ((long)(arg4))); \
00024 __syscall_return(type,__res); \
00025 }
00026
00027 #endif