16 #define __SYSCALL_COMPAT
20 #include <linux/kdev_t.h>
22 #include <linux/fcntl.h>
24 #include <linux/signal.h>
25 #include <asm/syscalls.h>
37 return sys_truncate(filename, ((loff_t)high << 32) | low);
48 return sys_pread64(fd, ubuf, count, ((loff_t)high << 32) | low);
54 return sys_pwrite64(fd, ubuf, count, ((loff_t)high << 32) | low);
63 u32 offset_lo,
u32 offset_hi,
64 u32 nbytes_lo,
u32 nbytes_hi)
67 ((loff_t)nbytes_hi << 32) | nbytes_lo,
72 u32 offset_lo,
u32 offset_hi,
75 return sys_fallocate(fd, mode, ((loff_t)offset_hi << 32) | offset_lo,
76 ((loff_t)len_hi << 32) | len_lo);
99 #define __SYSCALL(nr, call) [nr] = (call),
102 #define compat_sys_fadvise64_64 sys32_fadvise64_64
103 #define compat_sys_readahead sys32_readahead
106 #define compat_sys_execve _compat_sys_execve
107 #define compat_sys_sigaltstack _compat_sys_sigaltstack
108 #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn
109 #define sys_clone _sys_clone
117 #include <asm/unistd.h>