summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-12 01:49:22 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-12 01:49:22 +0000
commit6266e361a1c8cd062bd9f60fba690d3c02b2c178 (patch)
treedc700cfcebc424c872664e8d94e2767a841f733d /libc/sysdeps/linux
parent97ba1d45c181825ad714d0299de653e412060c9c (diff)
we dont want to truncate the offset when dealing with the syscall3 version as this will screw up some 64bit hosts
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/llseek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/llseek.c b/libc/sysdeps/linux/common/llseek.c
index 55200d369..a2ffd6196 100644
--- a/libc/sysdeps/linux/common/llseek.c
+++ b/libc/sysdeps/linux/common/llseek.c
@@ -53,7 +53,7 @@ loff_t attribute_hidden __lseek64(int fd, loff_t offset, int whence)
extern __off_t __lseek(int fildes, off_t offset, int whence) attribute_hidden;
loff_t __lseek64(int fd, loff_t offset, int whence)
{
- return(loff_t)(__lseek(fd, (off_t) (offset & 0xffffffff), whence));
+ return(loff_t)(__lseek(fd, (off_t) (offset), whence));
}
#endif
strong_alias(__lseek64,lseek64)