summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 00:41:41 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:37 +0200
commit67b8585deac9a0a6c8f8d5c64d377ab0f1acb3a3 (patch)
tree53995f6fc23d0e6a150e6e5554662d60f2937de8 /libc
parentf1c42c9e7416ba5236f6e466f2783690f47908a4 (diff)
llseek.c: use off64_t instead of loff_t as in header
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/llseek.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/llseek.c b/libc/sysdeps/linux/common/llseek.c
index 8b7cb7525..333770af0 100644
--- a/libc/sysdeps/linux/common/llseek.c
+++ b/libc/sysdeps/linux/common/llseek.c
@@ -8,8 +8,9 @@
*/
#include <_lfs_64.h>
-#include <unistd.h>
#include <sys/syscall.h>
+#include <unistd.h>
+#include <stdint.h>
/* Newer kernel ports have llseek() instead of _llseek() */
#if !defined __NR__llseek && defined __NR_llseek
@@ -17,16 +18,16 @@
#endif
#ifdef __NR__llseek
-loff_t lseek64(int fd, loff_t offset, int whence)
+off64_t lseek64(int fd, off64_t offset, int whence)
{
- loff_t result;
- return (loff_t)INLINE_SYSCALL(_llseek, 5, fd, (off_t) (offset >> 32),
+ off64_t result;
+ return (off64_t)INLINE_SYSCALL(_llseek, 5, fd, (off_t) (offset >> 32),
(off_t) (offset & 0xffffffff), &result, whence) ?: result;
}
#else
-loff_t lseek64(int fd, loff_t offset, int whence)
+off64_t lseek64(int fd, off64_t offset, int whence)
{
- return (loff_t)lseek(fd, (off_t) (offset), whence);
+ return (off64_t)lseek(fd, (off_t) (offset), whence);
}
#endif
#ifndef __LINUXTHREADS_OLD__