syscalls_32.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef __ASM_SH_SYSCALLS_32_H
  2. #define __ASM_SH_SYSCALLS_32_H
  3. #ifdef __KERNEL__
  4. #include <linux/compiler.h>
  5. #include <linux/linkage.h>
  6. #include <linux/types.h>
  7. struct pt_regs;
  8. asmlinkage int sys_fork(unsigned long r4, unsigned long r5,
  9. unsigned long r6, unsigned long r7,
  10. struct pt_regs __regs);
  11. asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
  12. unsigned long parent_tidptr,
  13. unsigned long child_tidptr,
  14. struct pt_regs __regs);
  15. asmlinkage int sys_vfork(unsigned long r4, unsigned long r5,
  16. unsigned long r6, unsigned long r7,
  17. struct pt_regs __regs);
  18. asmlinkage int sys_execve(const char __user *ufilename,
  19. const char __user *const __user *uargv,
  20. const char __user *const __user *uenvp,
  21. unsigned long r7, struct pt_regs __regs);
  22. asmlinkage int sys_sigsuspend(old_sigset_t mask, unsigned long r5,
  23. unsigned long r6, unsigned long r7,
  24. struct pt_regs __regs);
  25. asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
  26. struct old_sigaction __user *oact);
  27. asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
  28. unsigned long r6, unsigned long r7,
  29. struct pt_regs __regs);
  30. asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
  31. unsigned long r6, unsigned long r7,
  32. struct pt_regs __regs);
  33. asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
  34. unsigned long r6, unsigned long r7,
  35. struct pt_regs __regs);
  36. asmlinkage int sys_sh_pipe(unsigned long r4, unsigned long r5,
  37. unsigned long r6, unsigned long r7,
  38. struct pt_regs __regs);
  39. asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
  40. size_t count, long dummy, loff_t pos);
  41. asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
  42. size_t count, long dummy, loff_t pos);
  43. asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
  44. u32 len0, u32 len1, int advice);
  45. /* Misc syscall related bits */
  46. asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
  47. asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
  48. asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
  49. unsigned long thread_info_flags);
  50. #endif /* __KERNEL__ */
  51. #endif /* __ASM_SH_SYSCALLS_32_H */