sys.c 387 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/syscalls.h>
  3. #include <linux/signal.h>
  4. #include <linux/unistd.h>
  5. #include <asm/syscalls.h>
  6. #define sys_clone sys_clone_wrapper
  7. #define sys_clone3 sys_clone3_wrapper
  8. #undef __SYSCALL
  9. #define __SYSCALL(nr, call) [nr] = (call),
  10. void *sys_call_table[NR_syscalls] = {
  11. [0 ... NR_syscalls-1] = sys_ni_syscall,
  12. #include <asm/unistd.h>
  13. };