systbls.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #ifndef _SYSTBLS_H
  2. #define _SYSTBLS_H
  3. #include <linux/signal.h>
  4. #include <linux/kernel.h>
  5. #include <linux/compat.h>
  6. #include <linux/types.h>
  7. #include <asm/utrap.h>
  8. asmlinkage unsigned long sys_getpagesize(void);
  9. asmlinkage long sparc_pipe(struct pt_regs *regs);
  10. asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs);
  11. asmlinkage long sys_getdomainname(char __user *name, int len);
  12. void do_rt_sigreturn(struct pt_regs *regs);
  13. asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
  14. unsigned long prot, unsigned long flags,
  15. unsigned long fd, unsigned long off);
  16. asmlinkage void sparc_breakpoint(struct pt_regs *regs);
  17. #ifdef CONFIG_SPARC32
  18. asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
  19. unsigned long prot, unsigned long flags,
  20. unsigned long fd, unsigned long pgoff);
  21. long sparc_remap_file_pages(unsigned long start, unsigned long size,
  22. unsigned long prot, unsigned long pgoff,
  23. unsigned long flags);
  24. #endif /* CONFIG_SPARC32 */
  25. #ifdef CONFIG_SPARC64
  26. asmlinkage long sys_sparc_ipc(unsigned int call, int first,
  27. unsigned long second,
  28. unsigned long third,
  29. void __user *ptr, long fifth);
  30. asmlinkage long sparc64_personality(unsigned long personality);
  31. asmlinkage long sys64_munmap(unsigned long addr, size_t len);
  32. asmlinkage unsigned long sys64_mremap(unsigned long addr,
  33. unsigned long old_len,
  34. unsigned long new_len,
  35. unsigned long flags,
  36. unsigned long new_addr);
  37. asmlinkage long sys_utrap_install(utrap_entry_t type,
  38. utrap_handler_t new_p,
  39. utrap_handler_t new_d,
  40. utrap_handler_t __user *old_p,
  41. utrap_handler_t __user *old_d);
  42. asmlinkage long sparc_memory_ordering(unsigned long model,
  43. struct pt_regs *regs);
  44. asmlinkage void sparc64_set_context(struct pt_regs *regs);
  45. asmlinkage void sparc64_get_context(struct pt_regs *regs);
  46. asmlinkage long sys32_truncate64(const char __user * path,
  47. unsigned long high,
  48. unsigned long low);
  49. asmlinkage long sys32_ftruncate64(unsigned int fd,
  50. unsigned long high,
  51. unsigned long low);
  52. struct compat_stat64;
  53. asmlinkage long compat_sys_stat64(const char __user * filename,
  54. struct compat_stat64 __user *statbuf);
  55. asmlinkage long compat_sys_lstat64(const char __user * filename,
  56. struct compat_stat64 __user *statbuf);
  57. asmlinkage long compat_sys_fstat64(unsigned int fd,
  58. struct compat_stat64 __user * statbuf);
  59. asmlinkage long compat_sys_fstatat64(unsigned int dfd,
  60. const char __user *filename,
  61. struct compat_stat64 __user * statbuf, int flag);
  62. asmlinkage compat_ssize_t sys32_pread64(unsigned int fd,
  63. char __user *ubuf,
  64. compat_size_t count,
  65. unsigned long poshi,
  66. unsigned long poslo);
  67. asmlinkage compat_ssize_t sys32_pwrite64(unsigned int fd,
  68. char __user *ubuf,
  69. compat_size_t count,
  70. unsigned long poshi,
  71. unsigned long poslo);
  72. asmlinkage long compat_sys_readahead(int fd,
  73. unsigned long offhi,
  74. unsigned long offlo,
  75. compat_size_t count);
  76. long compat_sys_fadvise64(int fd,
  77. unsigned long offhi,
  78. unsigned long offlo,
  79. compat_size_t len, int advice);
  80. long compat_sys_fadvise64_64(int fd,
  81. unsigned long offhi, unsigned long offlo,
  82. unsigned long lenhi, unsigned long lenlo,
  83. int advice);
  84. long sys32_sync_file_range(unsigned int fd,
  85. unsigned long off_high, unsigned long off_low,
  86. unsigned long nb_high, unsigned long nb_low,
  87. unsigned int flags);
  88. asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
  89. u32 lenhi, u32 lenlo);
  90. asmlinkage long compat_sys_fstat64(unsigned int fd,
  91. struct compat_stat64 __user * statbuf);
  92. asmlinkage long compat_sys_fstatat64(unsigned int dfd,
  93. const char __user *filename,
  94. struct compat_stat64 __user * statbuf,
  95. int flag);
  96. #endif /* CONFIG_SPARC64 */
  97. #endif /* _SYSTBLS_H */