]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/asm-generic/syscalls.h
Fix the declaration of sys_execve() in asm-generic/syscalls.h
[net-next-2.6.git] / include / asm-generic / syscalls.h
CommitLineData
aafe4dbe
AB
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
12asmlinkage 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
18asmlinkage long sys_fork(struct pt_regs *regs);
19#endif
20
21#ifndef sys_vfork
22asmlinkage long sys_vfork(struct pt_regs *regs);
23#endif
24
25#ifndef sys_execve
d15ca320
DH
26asmlinkage 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);
aafe4dbe
AB
30#endif
31
32#ifndef sys_mmap2
33asmlinkage 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
39asmlinkage 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
45asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
46 struct pt_regs *);
47#endif
48
49#ifndef sys_rt_sigreturn
50asmlinkage long sys_rt_sigreturn(struct pt_regs *regs);
51#endif
52
53#ifndef sys_rt_sigsuspend
54asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
55#endif
56
57#ifndef sys_rt_sigaction
58asmlinkage 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 */