Merge remote-tracking branch 's5p/for-next'
[linux-2.6/next.git] / arch / powerpc / include / asm / syscalls.h
blob4084e567d28ef0d41b4bc2834270bd80c7e1eaa4
1 #ifndef __ASM_POWERPC_SYSCALLS_H
2 #define __ASM_POWERPC_SYSCALLS_H
3 #ifdef __KERNEL__
5 #include <linux/compiler.h>
6 #include <linux/linkage.h>
7 #include <linux/types.h>
8 #include <asm/signal.h>
10 struct pt_regs;
11 struct rtas_args;
12 struct sigaction;
14 asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
15 unsigned long prot, unsigned long flags,
16 unsigned long fd, off_t offset);
17 asmlinkage unsigned long sys_mmap2(unsigned long addr, size_t len,
18 unsigned long prot, unsigned long flags,
19 unsigned long fd, unsigned long pgoff);
20 asmlinkage int sys_execve(unsigned long a0, unsigned long a1,
21 unsigned long a2, unsigned long a3, unsigned long a4,
22 unsigned long a5, struct pt_regs *regs);
23 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long usp,
24 int __user *parent_tidp, void __user *child_threadptr,
25 int __user *child_tidp, int p6, struct pt_regs *regs);
26 asmlinkage int sys_fork(unsigned long p1, unsigned long p2,
27 unsigned long p3, unsigned long p4, unsigned long p5,
28 unsigned long p6, struct pt_regs *regs);
29 asmlinkage int sys_vfork(unsigned long p1, unsigned long p2,
30 unsigned long p3, unsigned long p4, unsigned long p5,
31 unsigned long p6, struct pt_regs *regs);
32 asmlinkage long sys_pipe(int __user *fildes);
33 asmlinkage long sys_pipe2(int __user *fildes, int flags);
34 asmlinkage long sys_rt_sigaction(int sig,
35 const struct sigaction __user *act,
36 struct sigaction __user *oact, size_t sigsetsize);
37 asmlinkage long ppc64_personality(unsigned long personality);
38 asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
39 asmlinkage time_t sys64_time(time_t __user * tloc);
41 asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset,
42 size_t sigsetsize);
43 asmlinkage long sys_sigaltstack(const stack_t __user *uss,
44 stack_t __user *uoss, unsigned long r5, unsigned long r6,
45 unsigned long r7, unsigned long r8, struct pt_regs *regs);
47 #endif /* __KERNEL__ */
48 #endif /* __ASM_POWERPC_SYSCALLS_H */