Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sys_ia32.h
Go to the documentation of this file.
1 /*
2  * sys_ia32.h - Linux ia32 syscall interfaces
3  *
4  * Copyright (c) 2008 Jaswinder Singh Rajput
5  *
6  * This file is released under the GPLv2.
7  * See the file COPYING for more details.
8  */
9 
10 #ifndef _ASM_X86_SYS_IA32_H
11 #define _ASM_X86_SYS_IA32_H
12 
13 #ifdef CONFIG_COMPAT
14 
15 #include <linux/compiler.h>
16 #include <linux/linkage.h>
17 #include <linux/types.h>
18 #include <linux/signal.h>
19 #include <asm/compat.h>
20 #include <asm/ia32.h>
21 
22 /* ia32/sys_ia32.c */
23 asmlinkage long sys32_truncate64(const char __user *, unsigned long, unsigned long);
24 asmlinkage long sys32_ftruncate64(unsigned int, unsigned long, unsigned long);
25 
26 asmlinkage long sys32_stat64(const char __user *, struct stat64 __user *);
27 asmlinkage long sys32_lstat64(const char __user *, struct stat64 __user *);
28 asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *);
29 asmlinkage long sys32_fstatat(unsigned int, const char __user *,
30  struct stat64 __user *, int);
31 struct mmap_arg_struct32;
32 asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *);
33 asmlinkage long sys32_mprotect(unsigned long, size_t, unsigned long);
34 
35 struct sigaction32;
36 struct old_sigaction32;
37 asmlinkage long sys32_rt_sigaction(int, struct sigaction32 __user *,
38  struct sigaction32 __user *, unsigned int);
39 asmlinkage long sys32_sigaction(int, struct old_sigaction32 __user *,
40  struct old_sigaction32 __user *);
41 asmlinkage long sys32_alarm(unsigned int);
42 
43 asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
44 asmlinkage long sys32_sysfs(int, u32, u32);
45 
47  struct compat_timespec __user *);
48 asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *, compat_size_t);
49 asmlinkage long sys32_rt_sigqueueinfo(int, int, compat_siginfo_t __user *);
50 
51 asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32);
52 asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
53 
54 asmlinkage long sys32_personality(unsigned long);
55 asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32);
56 
57 asmlinkage long sys32_clone(unsigned int, unsigned int, struct pt_regs *);
58 
59 long sys32_lseek(unsigned int, int, unsigned int);
60 long sys32_kill(int, int);
61 long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int);
62 long sys32_vm86_warning(void);
63 long sys32_lookup_dcookie(u32, u32, char __user *, size_t);
64 
65 asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t);
66 asmlinkage long sys32_sync_file_range(int, unsigned, unsigned,
67  unsigned, unsigned, int);
68 asmlinkage long sys32_fadvise64(int, unsigned, unsigned, size_t, int);
69 asmlinkage long sys32_fallocate(int, int, unsigned,
70  unsigned, unsigned, unsigned);
71 
72 /* ia32/ia32_signal.c */
74 asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *,
75  stack_ia32_t __user *, struct pt_regs *);
76 asmlinkage long sys32_sigreturn(struct pt_regs *);
78 
79 /* ia32/ipc32.c */
80 asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32);
81 
82 asmlinkage long sys32_fanotify_mark(int, unsigned int, u32, u32, int,
83  const char __user *);
84 
85 #endif /* CONFIG_COMPAT */
86 
87 #endif /* _ASM_X86_SYS_IA32_H */