syscalls.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __ASM_GENERIC_SYSCALLS_H
  2. #define __ASM_GENERIC_SYSCALLS_H
  3. #include <linux/compiler.h>
  4. #include <linux/linkage.h>
  5. /*
  6. * Calling conventions for these system calls can differ, so
  7. * it's possible to override them.
  8. */
  9. #ifndef sys_mmap2
  10. asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
  11. unsigned long prot, unsigned long flags,
  12. unsigned long fd, unsigned long pgoff);
  13. #endif
  14. #ifndef sys_mmap
  15. asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
  16. unsigned long prot, unsigned long flags,
  17. unsigned long fd, off_t pgoff);
  18. #endif
  19. #ifndef sys_sigaltstack
  20. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  21. struct pt_regs *);
  22. #endif
  23. #ifndef sys_rt_sigreturn
  24. asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
  25. #endif
  26. #ifndef sys_rt_sigsuspend
  27. asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
  28. #endif
  29. #ifndef sys_rt_sigaction
  30. asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act,
  31. struct sigaction __user *oact, size_t sigsetsize);
  32. #endif
  33. #endif /* __ASM_GENERIC_SYSCALLS_H */