{
loff_t pos = ((loff_t)pos_high << 32) | pos_low;
--- return __compat_sys_pwritev64(fd, vec, vlen, pos);
+++ return do_compat_pwritev64(fd, vec, vlen, pos, 0);
++ }
+++
+++ COMPAT_SYSCALL_DEFINE6(pwritev2, compat_ulong_t, fd,
+++ const struct compat_iovec __user *,vec,
+++ compat_ulong_t, vlen, u32, pos_low, u32, pos_high, int, flags)
+++ {
+++ loff_t pos = ((loff_t)pos_high << 32) | pos_low;
+++
+++ if (pos == -1)
+++ return do_compat_writev(fd, vec, vlen, flags);
+++
+++ return do_compat_pwritev64(fd, vec, vlen, pos, flags);
+ }
+++
#endif
static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos,