summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/open64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/open64.c')
-rw-r--r--libc/sysdeps/linux/common/open64.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c
index 4d965aeba..19ec33321 100644
--- a/libc/sysdeps/linux/common/open64.c
+++ b/libc/sysdeps/linux/common/open64.c
@@ -14,14 +14,9 @@
# define O_LARGEFILE 0100000
#endif
-extern __typeof(open64) __libc_open64;
-extern __typeof(open) __libc_open;
-libc_hidden_proto(__libc_open)
-
/* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
a third argument is the file protection. */
-libc_hidden_proto(__libc_open64)
-int __libc_open64 (const char *file, int oflag, ...)
+int open64 (const char *file, int oflag, ...)
{
mode_t mode = 0;
@@ -33,11 +28,8 @@ int __libc_open64 (const char *file, int oflag, ...)
va_end (arg);
}
- return __libc_open(file, oflag | O_LARGEFILE, mode);
+ return open(file, oflag | O_LARGEFILE, mode);
}
-libc_hidden_def(__libc_open64)
+libc_hidden_def(open64)
-/* libc_hidden_proto(open64) */
-weak_alias(__libc_open64,open64)
-libc_hidden_weak(open64)
#endif /* __UCLIBC_HAS_LFS__ */