diff options
Diffstat (limited to 'include/syscalls.h')
| -rw-r--r-- | include/syscalls.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/syscalls.h b/include/syscalls.h deleted file mode 100644 index 28f1a39..0000000 --- a/include/syscalls.h +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | #ifndef SYSCALLS_H | ||
| 2 | #define SYSCALLS_H | ||
| 3 | |||
| 4 | /* this is missing in newer linux/unistd.h versions */ | ||
| 5 | |||
| 6 | #define _syscall0(type,name) \ | ||
| 7 | type name(void) \ | ||
| 8 | {\ | ||
| 9 | return syscall(__NR_##name);\ | ||
| 10 | } | ||
| 11 | |||
| 12 | #define _syscall1(type,name,type1,arg1) \ | ||
| 13 | type name(type1 arg1) \ | ||
| 14 | {\ | ||
| 15 | return syscall(__NR_##name, arg1);\ | ||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | #define _syscall2(type,name,type1,arg1,type2,arg2) \ | ||
| 20 | type name(type1 arg1,type2 arg2) \ | ||
| 21 | {\ | ||
| 22 | return syscall(__NR_##name, arg1, arg2);\ | ||
| 23 | } | ||
| 24 | |||
| 25 | #define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \ | ||
| 26 | type name(type1 arg1,type2 arg2, type3 arg3) \ | ||
| 27 | {\ | ||
| 28 | return syscall(__NR_##name, arg1, arg2, arg3); \ | ||
| 29 | } | ||
| 30 | |||
| 31 | #define _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4)\ | ||
| 32 | type name(type1 arg1,type2 arg2, type3 arg3, type4 arg4) \ | ||
| 33 | {\ | ||
| 34 | return syscall(__NR_##name, arg1, arg2, arg3, arg4); \ | ||
| 35 | } | ||
| 36 | |||
| 37 | |||
| 38 | #endif | ||
