5252#define AA (__x ) ((unsigned long)(__x))
5353
5454
55- COMPAT_SYSCALL_DEFINE3 (x86_truncate64 , const char __user * , filename ,
55+ COMPAT_SYSCALL_DEFINE3 (ia32_truncate64 , const char __user * , filename ,
5656 unsigned long , offset_low , unsigned long , offset_high )
5757{
5858 return ksys_truncate (filename ,
5959 ((loff_t ) offset_high << 32 ) | offset_low );
6060}
6161
62- COMPAT_SYSCALL_DEFINE3 (x86_ftruncate64 , unsigned int , fd ,
62+ COMPAT_SYSCALL_DEFINE3 (ia32_ftruncate64 , unsigned int , fd ,
6363 unsigned long , offset_low , unsigned long , offset_high )
6464{
6565 return ksys_ftruncate (fd , ((loff_t ) offset_high << 32 ) | offset_low );
@@ -97,7 +97,7 @@ static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat)
9797 return 0 ;
9898}
9999
100- COMPAT_SYSCALL_DEFINE2 (x86_stat64 , const char __user * , filename ,
100+ COMPAT_SYSCALL_DEFINE2 (ia32_stat64 , const char __user * , filename ,
101101 struct stat64 __user * , statbuf )
102102{
103103 struct kstat stat ;
@@ -108,7 +108,7 @@ COMPAT_SYSCALL_DEFINE2(x86_stat64, const char __user *, filename,
108108 return ret ;
109109}
110110
111- COMPAT_SYSCALL_DEFINE2 (x86_lstat64 , const char __user * , filename ,
111+ COMPAT_SYSCALL_DEFINE2 (ia32_lstat64 , const char __user * , filename ,
112112 struct stat64 __user * , statbuf )
113113{
114114 struct kstat stat ;
@@ -118,7 +118,7 @@ COMPAT_SYSCALL_DEFINE2(x86_lstat64, const char __user *, filename,
118118 return ret ;
119119}
120120
121- COMPAT_SYSCALL_DEFINE2 (x86_fstat64 , unsigned int , fd ,
121+ COMPAT_SYSCALL_DEFINE2 (ia32_fstat64 , unsigned int , fd ,
122122 struct stat64 __user * , statbuf )
123123{
124124 struct kstat stat ;
@@ -128,7 +128,7 @@ COMPAT_SYSCALL_DEFINE2(x86_fstat64, unsigned int, fd,
128128 return ret ;
129129}
130130
131- COMPAT_SYSCALL_DEFINE4 (x86_fstatat , unsigned int , dfd ,
131+ COMPAT_SYSCALL_DEFINE4 (ia32_fstatat64 , unsigned int , dfd ,
132132 const char __user * , filename ,
133133 struct stat64 __user * , statbuf , int , flag )
134134{
@@ -156,7 +156,7 @@ struct mmap_arg_struct32 {
156156 unsigned int offset ;
157157};
158158
159- COMPAT_SYSCALL_DEFINE1 (x86_mmap , struct mmap_arg_struct32 __user * , arg )
159+ COMPAT_SYSCALL_DEFINE1 (ia32_mmap , struct mmap_arg_struct32 __user * , arg )
160160{
161161 struct mmap_arg_struct32 a ;
162162
@@ -171,14 +171,14 @@ COMPAT_SYSCALL_DEFINE1(x86_mmap, struct mmap_arg_struct32 __user *, arg)
171171}
172172
173173/* warning: next two assume little endian */
174- COMPAT_SYSCALL_DEFINE5 (x86_pread , unsigned int , fd , char __user * , ubuf ,
174+ COMPAT_SYSCALL_DEFINE5 (ia32_pread64 , unsigned int , fd , char __user * , ubuf ,
175175 u32 , count , u32 , poslo , u32 , poshi )
176176{
177177 return ksys_pread64 (fd , ubuf , count ,
178178 ((loff_t )AA (poshi ) << 32 ) | AA (poslo ));
179179}
180180
181- COMPAT_SYSCALL_DEFINE5 (x86_pwrite , unsigned int , fd , const char __user * , ubuf ,
181+ COMPAT_SYSCALL_DEFINE5 (ia32_pwrite64 , unsigned int , fd , const char __user * , ubuf ,
182182 u32 , count , u32 , poslo , u32 , poshi )
183183{
184184 return ksys_pwrite64 (fd , ubuf , count ,
@@ -190,7 +190,7 @@ COMPAT_SYSCALL_DEFINE5(x86_pwrite, unsigned int, fd, const char __user *, ubuf,
190190 * Some system calls that need sign extended arguments. This could be
191191 * done by a generic wrapper.
192192 */
193- COMPAT_SYSCALL_DEFINE6 (x86_fadvise64_64 , int , fd , __u32 , offset_low ,
193+ COMPAT_SYSCALL_DEFINE6 (ia32_fadvise64_64 , int , fd , __u32 , offset_low ,
194194 __u32 , offset_high , __u32 , len_low , __u32 , len_high ,
195195 int , advice )
196196{
@@ -200,13 +200,13 @@ COMPAT_SYSCALL_DEFINE6(x86_fadvise64_64, int, fd, __u32, offset_low,
200200 advice );
201201}
202202
203- COMPAT_SYSCALL_DEFINE4 (x86_readahead , int , fd , unsigned int , off_lo ,
203+ COMPAT_SYSCALL_DEFINE4 (ia32_readahead , int , fd , unsigned int , off_lo ,
204204 unsigned int , off_hi , size_t , count )
205205{
206206 return ksys_readahead (fd , ((u64 )off_hi << 32 ) | off_lo , count );
207207}
208208
209- COMPAT_SYSCALL_DEFINE6 (x86_sync_file_range , int , fd , unsigned int , off_low ,
209+ COMPAT_SYSCALL_DEFINE6 (ia32_sync_file_range , int , fd , unsigned int , off_low ,
210210 unsigned int , off_hi , unsigned int , n_low ,
211211 unsigned int , n_hi , int , flags )
212212{
@@ -215,14 +215,14 @@ COMPAT_SYSCALL_DEFINE6(x86_sync_file_range, int, fd, unsigned int, off_low,
215215 ((u64 )n_hi << 32 ) | n_low , flags );
216216}
217217
218- COMPAT_SYSCALL_DEFINE5 (x86_fadvise64 , int , fd , unsigned int , offset_lo ,
218+ COMPAT_SYSCALL_DEFINE5 (ia32_fadvise64 , int , fd , unsigned int , offset_lo ,
219219 unsigned int , offset_hi , size_t , len , int , advice )
220220{
221221 return ksys_fadvise64_64 (fd , ((u64 )offset_hi << 32 ) | offset_lo ,
222222 len , advice );
223223}
224224
225- COMPAT_SYSCALL_DEFINE6 (x86_fallocate , int , fd , int , mode ,
225+ COMPAT_SYSCALL_DEFINE6 (ia32_fallocate , int , fd , int , mode ,
226226 unsigned int , offset_lo , unsigned int , offset_hi ,
227227 unsigned int , len_lo , unsigned int , len_hi )
228228{
@@ -233,7 +233,7 @@ COMPAT_SYSCALL_DEFINE6(x86_fallocate, int, fd, int, mode,
233233/*
234234 * The 32-bit clone ABI is CONFIG_CLONE_BACKWARDS
235235 */
236- COMPAT_SYSCALL_DEFINE5 (x86_clone , unsigned long , clone_flags ,
236+ COMPAT_SYSCALL_DEFINE5 (ia32_clone , unsigned long , clone_flags ,
237237 unsigned long , newsp , int __user * , parent_tidptr ,
238238 unsigned long , tls_val , int __user * , child_tidptr )
239239{
0 commit comments