syscalls.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_clone
  10. asmlinkage long sys_clone(unsigned long clone_flags, unsigned long newsp,
  11. void __user *parent_tid, void __user *child_tid,
  12. struct pt_regs *regs);
  13. #endif
  14. #ifndef sys_fork
  15. asmlinkage long sys_fork(struct pt_regs *regs);
  16. #endif
  17. #ifndef sys_vfork
  18. asmlinkage long sys_vfork(struct pt_regs *regs);
  19. #endif
  20. #ifndef sys_execve
  21. asmlinkage long sys_execve(const char __user *filename,
  22. const char __user *const __user *argv,
  23. const char __user *const __user *envp,
  24. struct pt_regs *regs);
  25. #endif
  26. #ifndef sys_mmap2
  27. asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
  28. unsigned long prot, unsigned long flags,
  29. unsigned long fd, unsigned long pgoff);
  30. #endif
  31. #ifndef sys_mmap
  32. asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
  33. unsigned long prot, unsigned long flags,
  34. unsigned long fd, off_t pgoff);
  35. #endif
  36. #ifndef sys_sigaltstack
  37. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  38. struct pt_regs *);
  39. #endif
  40. #ifndef sys_rt_sigreturn
  41. asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
  42. #endif
  43. #ifndef sys_rt_sigsuspend
  44. asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
  45. #endif
  46. #ifndef sys_rt_sigaction
  47. asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act,
  48. struct sigaction __user *oact, size_t sigsetsize);
  49. #endif
  50. #endif /* __ASM_GENERIC_SYSCALLS_H */