mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* sysdeps/unix/sysv/linux/pread64.c: The little/big endian code was switched.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2000-05-26 Ulrich Drepper <drepper@redhat.com>
|
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/Makefile (tests): Add tst-preadwrite64.
|
||||||
* posix/tst-preadwrite.c: Alloc file being used also for testing
|
* posix/tst-preadwrite.c: Alloc file being used also for testing
|
||||||
pread64 and pwrite64.
|
pread64 and pwrite64.
|
||||||
|
@ -48,13 +48,13 @@ __libc_pread64 (fd, buf, count, offset)
|
|||||||
|
|
||||||
/* First try the syscall. */
|
/* First try the syscall. */
|
||||||
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
# 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,
|
result = INLINE_SYSCALL (pread, 5, fd, buf, count,
|
||||||
(off_t) (offset & 0xffffffff),
|
(off_t) (offset & 0xffffffff),
|
||||||
(off_t) (offset >> 32));
|
(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
|
# endif
|
||||||
|
|
||||||
# if __ASSUME_PREAD_SYSCALL == 0
|
# if __ASSUME_PREAD_SYSCALL == 0
|
||||||
|
Reference in New Issue
Block a user