diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-26 19:55:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-26 19:55:51 +0000 |
commit | f0b2767b75f31e04f2c22260b857595f081e748d (patch) | |
tree | d0213c45dc1e54aed5bce8bf5b6208fc92675b88 | |
parent | bd9df4cdad1c6afe9157a2cb4c6d53ac7e4bc8d8 (diff) | |
download | glibc-f0b2767b75f31e04f2c22260b857595f081e748d.tar.gz glibc-f0b2767b75f31e04f2c22260b857595f081e748d.tar.xz glibc-f0b2767b75f31e04f2c22260b857595f081e748d.zip |
Update.
* sysdeps/unix/sysv/linux/pread64.c: The little/big endian code was switched.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/pread64.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index 56921927a3..d18a0ccd6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-05-26 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code + was switched. + * posix/Makefile (tests): Add tst-preadwrite64. * posix/tst-preadwrite.c: Alloc file being used also for testing pread64 and pwrite64. diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c index 628fd430fb..1bf08dc878 100644 --- a/sysdeps/unix/sysv/linux/pread64.c +++ b/sysdeps/unix/sysv/linux/pread64.c @@ -49,12 +49,12 @@ __libc_pread64 (fd, buf, count, offset) /* First try the syscall. */ # if __BYTE_ORDER == __LITTLE_ENDIAN result = INLINE_SYSCALL (pread, 5, fd, buf, count, - (off_t) (offset >> 32), - (off_t) (offset & 0xffffffff)); -# elif __BYTE_ORDER == __BIG_ENDIAN - result = INLINE_SYSCALL (pread, 5, fd, buf, count, (off_t) (offset & 0xffffffff), (off_t) (offset >> 32)); +# elif __BYTE_ORDER == __BIG_ENDIAN + result = INLINE_SYSCALL (pread, 5, fd, buf, count, + (off_t) (offset >> 32), + (off_t) (offset & 0xffffffff)); # endif # if __ASSUME_PREAD_SYSCALL == 0 |