sys.c 486 B

12345678910111213141516171819
  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. #define sys_mmap2 sys_mmap_pgoff
  9. #define __SYSCALL(nr, call) [nr] = (call),
  10. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
  11. void *sys_call_table[NR_syscalls] = {
  12. [0 ... NR_syscalls-1] = sys_ni_syscall,
  13. #include <asm/syscall_table_32.h>
  14. };