syscalls.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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(char __user *filename, char __user * __user *argv,
  22. char __user * __user *envp, struct pt_regs *regs);
  23. #endif
  24. #ifndef sys_mmap2
  25. asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
  26. unsigned long prot, unsigned long flags,
  27. unsigned long fd, unsigned long pgoff);
  28. #endif
  29. #ifndef sys_mmap
  30. asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
  31. unsigned long prot, unsigned long flags,
  32. unsigned long fd, off_t pgoff);
  33. #endif
  34. #ifndef sys_sigaltstack
  35. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  36. struct pt_regs *);
  37. #endif
  38. #ifndef sys_rt_sigreturn
  39. asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
  40. #endif
  41. #ifndef sys_rt_sigsuspend
  42. asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
  43. #endif
  44. #ifndef sys_rt_sigaction
  45. asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act,
  46. struct sigaction __user *oact, size_t sigsetsize);
  47. #endif
  48. #endif /* __ASM_GENERIC_SYSCALLS_H */