syscalls.h 739 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_GENERIC_SYSCALLS_H
  3. #define __ASM_GENERIC_SYSCALLS_H
  4. #include <linux/compiler.h>
  5. #include <linux/linkage.h>
  6. /*
  7. * Calling conventions for these system calls can differ, so
  8. * it's possible to override them.
  9. */
  10. #ifndef sys_mmap2
  11. asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
  12. unsigned long prot, unsigned long flags,
  13. unsigned long fd, unsigned long pgoff);
  14. #endif
  15. #ifndef sys_mmap
  16. asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
  17. unsigned long prot, unsigned long flags,
  18. unsigned long fd, off_t pgoff);
  19. #endif
  20. #ifndef sys_rt_sigreturn
  21. asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
  22. #endif
  23. #endif /* __ASM_GENERIC_SYSCALLS_H */