Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 1 | #ifndef __ASM_GENERIC_SYSCALLS_H |
| 2 | #define __ASM_GENERIC_SYSCALLS_H |
| 3 | |
| 4 | #include <linux/compiler.h> |
| 5 | #include <linux/linkage.h> |
| 6 | |
| 7 | /* |
| 8 | * Calling conventions for these system calls can differ, so |
| 9 | * it's possible to override them. |
| 10 | */ |
| 11 | #ifndef sys_clone |
| 12 | asmlinkage long sys_clone(unsigned long clone_flags, unsigned long newsp, |
| 13 | void __user *parent_tid, void __user *child_tid, |
| 14 | struct pt_regs *regs); |
| 15 | #endif |
| 16 | |
| 17 | #ifndef sys_fork |
| 18 | asmlinkage long sys_fork(struct pt_regs *regs); |
| 19 | #endif |
| 20 | |
| 21 | #ifndef sys_vfork |
| 22 | asmlinkage long sys_vfork(struct pt_regs *regs); |
| 23 | #endif |
| 24 | |
| 25 | #ifndef sys_execve |
David Howells | d15ca32 | 2010-08-18 18:55:33 +0100 | [diff] [blame] | 26 | asmlinkage long sys_execve(const char __user *filename, |
| 27 | const char __user *const __user *argv, |
| 28 | const char __user *const __user *envp, |
| 29 | struct pt_regs *regs); |
Arnd Bergmann | aafe4db | 2009-05-13 22:56:33 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |
| 32 | #ifndef sys_mmap2 |
| 33 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, |
| 34 | unsigned long prot, unsigned long flags, |
| 35 | unsigned long fd, unsigned long pgoff); |
| 36 | #endif |
| 37 | |
| 38 | #ifndef sys_mmap |
| 39 | asmlinkage long sys_mmap(unsigned long addr, unsigned long len, |
| 40 | unsigned long prot, unsigned long flags, |
| 41 | unsigned long fd, off_t pgoff); |
| 42 | #endif |
| 43 | |
| 44 | #ifndef sys_sigaltstack |
| 45 | asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *, |
| 46 | struct pt_regs *); |
| 47 | #endif |
| 48 | |
| 49 | #ifndef sys_rt_sigreturn |
| 50 | asmlinkage long sys_rt_sigreturn(struct pt_regs *regs); |
| 51 | #endif |
| 52 | |
| 53 | #ifndef sys_rt_sigsuspend |
| 54 | asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize); |
| 55 | #endif |
| 56 | |
| 57 | #ifndef sys_rt_sigaction |
| 58 | asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act, |
| 59 | struct sigaction __user *oact, size_t sigsetsize); |
| 60 | #endif |
| 61 | |
| 62 | #endif /* __ASM_GENERIC_SYSCALLS_H */ |