1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/signal.h>
6 #include <linux/kernel.h>
7 #include <linux/compat.h>
8 #include <linux/types.h>
10 #include <asm/utrap.h>
12 asmlinkage
long sys_getpagesize(void);
13 asmlinkage
long sys_sparc_pipe(void);
14 asmlinkage
long sys_nis_syscall(void);
15 asmlinkage
long sys_getdomainname(char __user
*name
, int len
);
16 void do_rt_sigreturn(struct pt_regs
*regs
);
17 asmlinkage
long sys_mmap(unsigned long addr
, unsigned long len
,
18 unsigned long prot
, unsigned long flags
,
19 unsigned long fd
, unsigned long off
);
20 asmlinkage
void sparc_breakpoint(struct pt_regs
*regs
);
23 asmlinkage
long sys_mmap2(unsigned long addr
, unsigned long len
,
24 unsigned long prot
, unsigned long flags
,
25 unsigned long fd
, unsigned long pgoff
);
26 long sys_sparc_remap_file_pages(unsigned long start
, unsigned long size
,
27 unsigned long prot
, unsigned long pgoff
,
30 #endif /* CONFIG_SPARC32 */
33 asmlinkage
long sys_sparc_ipc(unsigned int call
, int first
,
36 void __user
*ptr
, long fifth
);
37 asmlinkage
long sparc64_personality(unsigned long personality
);
38 asmlinkage
long sys64_munmap(unsigned long addr
, size_t len
);
39 asmlinkage
unsigned long sys64_mremap(unsigned long addr
,
40 unsigned long old_len
,
41 unsigned long new_len
,
43 unsigned long new_addr
);
44 asmlinkage
long sys_utrap_install(utrap_entry_t type
,
45 utrap_handler_t new_p
,
46 utrap_handler_t new_d
,
47 utrap_handler_t __user
*old_p
,
48 utrap_handler_t __user
*old_d
);
49 asmlinkage
long sys_memory_ordering(unsigned long model
);
50 asmlinkage
void sparc64_set_context(struct pt_regs
*regs
);
51 asmlinkage
void sparc64_get_context(struct pt_regs
*regs
);
52 asmlinkage
long compat_sys_truncate64(const char __user
* path
,
55 asmlinkage
long compat_sys_ftruncate64(unsigned int fd
,
59 asmlinkage
long compat_sys_stat64(const char __user
* filename
,
60 struct compat_stat64 __user
*statbuf
);
61 asmlinkage
long compat_sys_lstat64(const char __user
* filename
,
62 struct compat_stat64 __user
*statbuf
);
63 asmlinkage
long compat_sys_fstat64(unsigned int fd
,
64 struct compat_stat64 __user
* statbuf
);
65 asmlinkage
long compat_sys_fstatat64(unsigned int dfd
,
66 const char __user
*filename
,
67 struct compat_stat64 __user
* statbuf
, int flag
);
68 asmlinkage
long compat_sys_pread64(unsigned int fd
,
73 asmlinkage
long compat_sys_pwrite64(unsigned int fd
,
78 asmlinkage
long compat_sys_readahead(int fd
,
82 long compat_sys_fadvise64(int fd
,
85 compat_size_t len
, int advice
);
86 long compat_sys_fadvise64_64(int fd
,
87 unsigned offhi
, unsigned offlo
,
88 unsigned lenhi
, unsigned lenlo
,
90 long compat_sys_sync_file_range(unsigned int fd
,
91 unsigned off_high
, unsigned off_low
,
92 unsigned nb_high
, unsigned nb_low
,
94 asmlinkage
long compat_sys_fallocate(int fd
, int mode
, u32 offhi
, u32 offlo
,
95 u32 lenhi
, u32 lenlo
);
96 asmlinkage
long compat_sys_fstat64(unsigned int fd
,
97 struct compat_stat64 __user
* statbuf
);
98 asmlinkage
long compat_sys_fstatat64(unsigned int dfd
,
99 const char __user
*filename
,
100 struct compat_stat64 __user
* statbuf
,
102 #endif /* CONFIG_SPARC64 */
103 #endif /* _SYSTBLS_H */