xref: /OK3568_Linux_fs/kernel/include/asm-generic/syscalls.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_SYSCALLS_H
3*4882a593Smuzhiyun #define __ASM_GENERIC_SYSCALLS_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/compiler.h>
6*4882a593Smuzhiyun #include <linux/linkage.h>
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /*
9*4882a593Smuzhiyun  * Calling conventions for these system calls can differ, so
10*4882a593Smuzhiyun  * it's possible to override them.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #ifndef sys_mmap2
14*4882a593Smuzhiyun asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
15*4882a593Smuzhiyun 			unsigned long prot, unsigned long flags,
16*4882a593Smuzhiyun 			unsigned long fd, unsigned long pgoff);
17*4882a593Smuzhiyun #endif
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #ifndef sys_mmap
20*4882a593Smuzhiyun asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
21*4882a593Smuzhiyun 			unsigned long prot, unsigned long flags,
22*4882a593Smuzhiyun 			unsigned long fd, off_t pgoff);
23*4882a593Smuzhiyun #endif
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #ifndef sys_rt_sigreturn
26*4882a593Smuzhiyun asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
27*4882a593Smuzhiyun #endif
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #endif /* __ASM_GENERIC_SYSCALLS_H */
30