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 */ |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 23 | asmlinkage long compat_sys_x86_truncate64(const char __user *, unsigned long, |
| 24 | unsigned long); |
| 25 | asmlinkage long compat_sys_x86_ftruncate64(unsigned int, unsigned long, |
| 26 | unsigned long); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 27 | |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 28 | asmlinkage long compat_sys_x86_stat64(const char __user *, |
| 29 | struct stat64 __user *); |
| 30 | asmlinkage long compat_sys_x86_lstat64(const char __user *, |
| 31 | struct stat64 __user *); |
| 32 | asmlinkage long compat_sys_x86_fstat64(unsigned int, struct stat64 __user *); |
| 33 | asmlinkage long compat_sys_x86_fstatat(unsigned int, const char __user *, |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 34 | struct stat64 __user *, int); |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 35 | struct mmap_arg_struct32; |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 36 | asmlinkage long compat_sys_x86_mmap(struct mmap_arg_struct32 __user *); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 37 | |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 38 | asmlinkage long compat_sys_x86_waitpid(compat_pid_t, unsigned int __user *, |
| 39 | int); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 40 | |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 41 | asmlinkage long compat_sys_x86_pread(unsigned int, char __user *, u32, u32, |
| 42 | u32); |
| 43 | asmlinkage long compat_sys_x86_pwrite(unsigned int, const char __user *, u32, |
| 44 | u32, u32); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 45 | |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 46 | asmlinkage long compat_sys_x86_fadvise64_64(int, __u32, __u32, __u32, __u32, |
| 47 | int); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 48 | |
Dominik Brodowski | 4ddb45d | 2018-03-06 22:18:07 +0100 | [diff] [blame] | 49 | asmlinkage ssize_t compat_sys_x86_readahead(int, unsigned int, unsigned int, |
| 50 | size_t); |
| 51 | asmlinkage long compat_sys_x86_sync_file_range(int, unsigned int, unsigned int, |
| 52 | unsigned int, unsigned int, |
| 53 | int); |
| 54 | asmlinkage long compat_sys_x86_fadvise64(int, unsigned int, unsigned int, |
| 55 | size_t, int); |
| 56 | asmlinkage long compat_sys_x86_fallocate(int, int, unsigned int, unsigned int, |
| 57 | unsigned int, unsigned int); |
Dominik Brodowski | af52201 | 2018-03-06 22:18:08 +0100 | [diff] [blame] | 58 | asmlinkage long compat_sys_x86_clone(unsigned long, unsigned long, int __user *, |
| 59 | unsigned long, int __user *); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 60 | |
| 61 | /* ia32/ia32_signal.c */ |
Al Viro | 3fe26fa | 2012-11-12 14:32:42 -0500 | [diff] [blame] | 62 | asmlinkage long sys32_sigreturn(void); |
| 63 | asmlinkage long sys32_rt_sigreturn(void); |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 64 | |
H. Peter Anvin | a96d692 | 2012-02-19 14:02:46 -0800 | [diff] [blame] | 65 | #endif /* CONFIG_COMPAT */ |
| 66 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 67 | #endif /* _ASM_X86_SYS_IA32_H */ |