Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/io64.c')
-rw-r--r--newlib/libc/sys/linux/io64.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/newlib/libc/sys/linux/io64.c b/newlib/libc/sys/linux/io64.c
index ea40dcb10..f54c40597 100644
--- a/newlib/libc/sys/linux/io64.c
+++ b/newlib/libc/sys/linux/io64.c
@@ -20,14 +20,15 @@ _syscall2(int,stat64,const char *,name,struct stat64 *,st)
static _syscall5(void,_llseek,int,fd,off_t,hi,off_t,lo,loff_t *,pos,int,whence)
-loff_t lseek64(int fd, loff_t offset, int whence)
+loff_t __libc_lseek64(int fd, loff_t offset, int whence)
{
loff_t pos;
- _llseek(fd, offset >> 32, offset & 0xffffffff, &pos, whence);
+ __libc__llseek(fd, offset >> 32, offset & 0xffffffff, &pos, whence);
return pos;
}
+weak_alias(__libc_lseek64,lseek64);
-int open64(const char *path, int oflag, ...)
+int __libc_open64(const char *path, int oflag, ...)
{
mode_t mode = 0;
if (oflag & O_CREAT)
@@ -37,7 +38,9 @@ int open64(const char *path, int oflag, ...)
mode = va_arg(list, int);
va_end(list);
}
- return open(path, oflag | O_LARGEFILE, mode);
+ return __libc_open(path, oflag | O_LARGEFILE, mode);
}
+weak_alias(__libc_open64,open64);
+weak_alias(__libc_open64,__open64);