diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/pwrite64.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pwrite64.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c index 71eac41a48..b1039f097a 100644 --- a/sysdeps/unix/sysv/linux/pwrite64.c +++ b/sysdeps/unix/sysv/linux/pwrite64.c @@ -47,15 +47,9 @@ __libc_pwrite64 (fd, buf, count, offset) ssize_t result; /* First try the syscall. */ -# if __BYTE_ORDER == __LITTLE_ENDIAN result = INLINE_SYSCALL (pwrite, 5, fd, buf, count, - (off_t) (offset & 0xffffffff), - (off_t) (offset >> 32)); -# elif __BYTE_ORDER == __BIG_ENDIAN - result = INLINE_SYSCALL (pwrite, 5, fd, buf, count, - (off_t) (offset >> 32), - (off_t) (offset & 0xffffffff)); -# endif + __LONG_LONG_PAIR ((off_t) (offset >> 32), + (off_t) (offset & 0xffffffff))); # if __ASSUME_PWRITE_SYSCALL == 0 if (result == -1 && errno == ENOSYS) /* No system call available. Use the emulation. */ |