1 #ifndef __ASM_GENERIC_SYSCALLS_H
2 #define __ASM_GENERIC_SYSCALLS_H
4 #include <linux/compiler.h>
5 #include <linux/linkage.h>
8 * Calling conventions for these system calls can differ, so
9 * it's possible to override them.
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
);
18 asmlinkage
long sys_fork(struct pt_regs
*regs
);
22 asmlinkage
long sys_vfork(struct pt_regs
*regs
);
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
);
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
);
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
);
44 #ifndef sys_sigaltstack
45 asmlinkage
long sys_sigaltstack(const stack_t __user
*, stack_t __user
*,
49 #ifndef sys_rt_sigreturn
50 asmlinkage
long sys_rt_sigreturn(struct pt_regs
*regs
);
53 #ifndef sys_rt_sigsuspend
54 asmlinkage
long sys_rt_sigsuspend(sigset_t __user
*unewset
, size_t sigsetsize
);
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
);
62 #endif /* __ASM_GENERIC_SYSCALLS_H */