Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 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 | |
H. Peter Anvin | a96d692 | 2012-02-19 14:02:46 -0800 | [diff] [blame] | 13 | #ifdef CONFIG_COMPAT |
| 14 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 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 */ |
David Howells | c788732 | 2010-08-11 11:26:22 +0100 | [diff] [blame] | 23 | asmlinkage long sys32_truncate64(const char __user *, unsigned long, unsigned long); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 24 | asmlinkage long sys32_ftruncate64(unsigned int, unsigned long, unsigned long); |
| 25 | |
David Howells | c788732 | 2010-08-11 11:26:22 +0100 | [diff] [blame] | 26 | asmlinkage long sys32_stat64(const char __user *, struct stat64 __user *); |
| 27 | asmlinkage long sys32_lstat64(const char __user *, struct stat64 __user *); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 28 | asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *); |
David Howells | c788732 | 2010-08-11 11:26:22 +0100 | [diff] [blame] | 29 | asmlinkage long sys32_fstatat(unsigned int, const char __user *, |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 30 | struct stat64 __user *, int); |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 31 | struct mmap_arg_struct32; |
| 32 | asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 33 | |
Mathias Krause | f000262 | 2012-09-02 23:31:40 +0200 | [diff] [blame] | 34 | asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 35 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 36 | asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32); |
David Howells | c788732 | 2010-08-11 11:26:22 +0100 | [diff] [blame] | 37 | asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 38 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 39 | long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int); |
| 40 | long sys32_vm86_warning(void); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 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 */ |
Al Viro | 3fe26fa | 2012-11-12 14:32:42 -0500 | [diff] [blame] | 50 | asmlinkage long sys32_sigreturn(void); |
| 51 | asmlinkage long sys32_rt_sigreturn(void); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 52 | |
H. Peter Anvin | a96d692 | 2012-02-19 14:02:46 -0800 | [diff] [blame] | 53 | #endif /* CONFIG_COMPAT */ |
| 54 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 55 | #endif /* _ASM_X86_SYS_IA32_H */ |