00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __RSBAC_SYSCALL_RSBAC_H
00013 #define __RSBAC_SYSCALL_RSBAC_H
00014
00015
00016
00017
00018 #include <linux/unistd.h>
00019 #include <rsbac/types.h>
00020 #include <rsbac/syscalls.h>
00021
00022 #ifdef __PIC__
00023 #undef _syscall3
00024 #define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \
00025 type name(type1 arg1,type2 arg2,type3 arg3) \
00026 {\
00027 return syscall(__NR_##name, arg1, arg2, arg3);\
00028 }
00029 #endif
00030
00031 static inline _syscall3(int, rsbac,
00032 rsbac_version_t, version,
00033 enum rsbac_syscall_t, call,
00034 union rsbac_syscall_arg_t *, arg_p);
00035
00036 #define sys_rsbac(a,b,c) rsbac(a,b,c)
00037 #endif