diff options
Diffstat (limited to 'libc/sysdeps/linux/common/open64.c')
| -rw-r--r-- | libc/sysdeps/linux/common/open64.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index 5c19d63b5..3f2ea344e 100644 --- a/libc/sysdeps/linux/common/open64.c +++ b/libc/sysdeps/linux/common/open64.c @@ -24,16 +24,17 @@ 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 mode = 0; + mode_t mode = 0; - if (oflag & O_CREAT) + if (oflag & O_CREAT) { - va_list arg; - va_start (arg, oflag); - mode = va_arg (arg, int); - va_end (arg); + va_list arg; + va_start (arg, oflag); + mode = va_arg (arg, mode_t); + va_end (arg); } #ifdef __UCLIBC_HAS_THREADS_NATIVE__ @@ -51,6 +52,8 @@ int __libc_open64 (const char *file, int oflag, ...) return __libc_open(file, oflag | O_LARGEFILE, mode); #endif } +libc_hidden_def(__libc_open64) + libc_hidden_proto(open64) weak_alias(__libc_open64,open64) libc_hidden_weak(open64) |
