diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-28 01:08:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-28 01:08:55 +0000 |
commit | ad3371fbac6896adc4820434676f35bd44a24cf8 (patch) | |
tree | 114d0b6de6e6bd4d52ae386bd4bd1328c9fc56d5 /sysdeps | |
parent | 666aa0201b5e68d13d24d7e9151c7d548d5cbbda (diff) | |
download | glibc-ad3371fbac6896adc4820434676f35bd44a24cf8.tar.gz glibc-ad3371fbac6896adc4820434676f35bd44a24cf8.tar.xz glibc-ad3371fbac6896adc4820434676f35bd44a24cf8.zip |
[BZ #5208]
2007-10-23 Andreas Jaeger <aj@suse.de> [BZ #5208] * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use __LONG_LONG_PAIR to handle little endian byte order. Suggested by abhishekrai@google.com
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/readahead.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/readahead.c b/sysdeps/unix/sysv/linux/readahead.c index dc628b2b2c..c280a479c2 100644 --- a/sysdeps/unix/sysv/linux/readahead.c +++ b/sysdeps/unix/sysv/linux/readahead.c @@ -1,5 +1,5 @@ /* Provide kernel hint to read ahead. - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,8 +30,10 @@ ssize_t __readahead (int fd, off64_t offset, size_t count) { - return INLINE_SYSCALL (readahead, 4, fd, (off_t) (offset >> 32), - (off_t) (offset & 0xffffffff), count); + return INLINE_SYSCALL (readahead, 4, fd, + __LONG_LONG_PAIR ((off_t) (offset >> 32), + (off_t) (offset & 0xffffffff)), + count); } #else ssize_t |