123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #include <features.h>
- #include <fcntl.h>
- #include <stdarg.h>
- #ifndef O_LARGEFILE
- #define O_LARGEFILE 0100000
- #endif
- #ifdef __UCLIBC_HAS_LFS__
- extern int __libc_open (__const char *file, int oflag, mode_t mode);
- int __libc_open64 (const char *file, int oflag, ...)
- {
- int mode = 0;
- if (oflag & O_CREAT)
- {
- va_list arg;
- va_start (arg, oflag);
- mode = va_arg (arg, int);
- va_end (arg);
- }
- return __libc_open(file, oflag | O_LARGEFILE, mode);
- }
- weak_alias (__libc_open64, open64);
- #endif
|