PageRenderTime 51ms CodeModel.GetById 41ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/sh/include/asm/syscalls_32.h

https://bitbucket.org/ndreys/linux-sunxi
C++ Header | 57 lines | 50 code | 6 blank | 1 comment | 0 complexity | 4e3456e18e29e6df43bd38bdac02a517 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1#ifndef __ASM_SH_SYSCALLS_32_H
 2#define __ASM_SH_SYSCALLS_32_H
 3
 4#ifdef __KERNEL__
 5
 6#include <linux/compiler.h>
 7#include <linux/linkage.h>
 8#include <linux/types.h>
 9
10struct pt_regs;
11
12asmlinkage int sys_fork(unsigned long r4, unsigned long r5,
13			unsigned long r6, unsigned long r7,
14			struct pt_regs __regs);
15asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
16			 unsigned long parent_tidptr,
17			 unsigned long child_tidptr,
18			 struct pt_regs __regs);
19asmlinkage int sys_vfork(unsigned long r4, unsigned long r5,
20			 unsigned long r6, unsigned long r7,
21			 struct pt_regs __regs);
22asmlinkage int sys_execve(const char __user *ufilename,
23			  const char __user *const __user *uargv,
24			  const char __user *const __user *uenvp,
25			  unsigned long r7, struct pt_regs __regs);
26asmlinkage int sys_sigsuspend(old_sigset_t mask, unsigned long r5,
27			      unsigned long r6, unsigned long r7,
28			      struct pt_regs __regs);
29asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
30			     struct old_sigaction __user *oact);
31asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
32			       unsigned long r6, unsigned long r7,
33			       struct pt_regs __regs);
34asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
35			     unsigned long r6, unsigned long r7,
36			     struct pt_regs __regs);
37asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
38				unsigned long r6, unsigned long r7,
39				struct pt_regs __regs);
40asmlinkage int sys_sh_pipe(unsigned long r4, unsigned long r5,
41			   unsigned long r6, unsigned long r7,
42			   struct pt_regs __regs);
43asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
44				     size_t count, long dummy, loff_t pos);
45asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
46				      size_t count, long dummy, loff_t pos);
47asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
48					u32 len0, u32 len1, int advice);
49
50/* Misc syscall related bits */
51asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
52asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
53asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
54				 unsigned long thread_info_flags);
55
56#endif /* __KERNEL__ */
57#endif /* __ASM_SH_SYSCALLS_32_H */