sys.c 313 B

12345678910111213141516
  1. #include <linux/syscalls.h>
  2. #include <linux/signal.h>
  3. #include <linux/unistd.h>
  4. #include <asm/syscalls.h>
  5. #define sys_clone sys_clone_wrapper
  6. #undef __SYSCALL
  7. #define __SYSCALL(nr, call) [nr] = (call),
  8. void *sys_call_table[NR_syscalls] = {
  9. [0 ... NR_syscalls-1] = sys_ni_syscall,
  10. #include <asm/unistd.h>
  11. };