• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
34 asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
35 
36 asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32);
37 asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
38 
39 long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int);
40 long sys32_vm86_warning(void);
41 
42 asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t);
43 asmlinkage long sys32_sync_file_range(int, unsigned, unsigned,
44 				      unsigned, unsigned, int);
45 asmlinkage long sys32_fadvise64(int, unsigned, unsigned, size_t, int);
46 asmlinkage long sys32_fallocate(int, int, unsigned,
47 				unsigned, unsigned, unsigned);
48 
49 /* ia32/ia32_signal.c */
50 asmlinkage long sys32_sigreturn(void);
51 asmlinkage long sys32_rt_sigreturn(void);
52 
53 #endif /* CONFIG_COMPAT */
54 
55 #endif /* _ASM_X86_SYS_IA32_H */
56