Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 2 | #ifndef __ASM_GENERIC_SYSCALLS_H |
| 3 | #define __ASM_GENERIC_SYSCALLS_H |
| 4 | |
| 5 | #include <linux/compiler.h> |
| 6 | #include <linux/linkage.h> |
| 7 | |
| 8 | /* |
| 9 | * Calling conventions for these system calls can differ, so |
| 10 | * it's possible to override them. |
| 11 | */ |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 12 | |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 13 | #ifndef sys_mmap2 |
| 14 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, |
| 15 | unsigned long prot, unsigned long flags, |
| 16 | unsigned long fd, unsigned long pgoff); |
| 17 | #endif |
| 18 | |
| 19 | #ifndef sys_mmap |
| 20 | asmlinkage long sys_mmap(unsigned long addr, unsigned long len, |
| 21 | unsigned long prot, unsigned long flags, |
| 22 | unsigned long fd, off_t pgoff); |
| 23 | #endif |
| 24 | |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 25 | #ifndef sys_rt_sigreturn |
| 26 | asmlinkage long sys_rt_sigreturn(struct pt_regs *regs); |
| 27 | #endif |
| 28 | |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 29 | #endif /* __ASM_GENERIC_SYSCALLS_H */ |