syscalls.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 CONFIG_GENERIC_SIGALTSTACK
  20. #ifndef sys_sigaltstack
  21. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  22. struct pt_regs *);
  23. #endif
  24. #endif
  25. #ifndef sys_rt_sigreturn
  26. asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
  27. #endif
  28. #ifndef sys_rt_sigsuspend
  29. asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
  30. #endif
  31. #ifndef sys_rt_sigaction
  32. asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act,
  33. struct sigaction __user *oact, size_t sigsetsize);
  34. #endif
  35. #endif /* __ASM_GENERIC_SYSCALLS_H */