Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / include / asm-generic / syscalls.h
blobd89dec864d42547b84708e3502bf81f98108e76f
1 #ifndef __ASM_GENERIC_SYSCALLS_H
2 #define __ASM_GENERIC_SYSCALLS_H
4 #include <linux/compiler.h>
5 #include <linux/linkage.h>
7 /*
8 * Calling conventions for these system calls can differ, so
9 * it's possible to override them.
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
17 #ifndef sys_fork
18 asmlinkage long sys_fork(struct pt_regs *regs);
19 #endif
21 #ifndef sys_vfork
22 asmlinkage long sys_vfork(struct pt_regs *regs);
23 #endif
25 #ifndef sys_execve
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);
30 #endif
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
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
44 #ifndef sys_sigaltstack
45 asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
46 struct pt_regs *);
47 #endif
49 #ifndef sys_rt_sigreturn
50 asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
51 #endif
53 #ifndef sys_rt_sigsuspend
54 asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
55 #endif
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
62 #endif /* __ASM_GENERIC_SYSCALLS_H */