2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 #ifdef __UCLIBC_HAS_LFS__
14 # define O_LARGEFILE 0100000
17 extern __typeof(open64) __libc_open64;
18 extern __typeof(open) __libc_open;
19 libc_hidden_proto(__libc_open)
21 /* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
22 a third argument is the file protection. */
23 libc_hidden_proto(__libc_open64)
24 int __libc_open64 (const char *file, int oflag, ...)
31 va_start (arg, oflag);
32 mode = va_arg (arg, mode_t);
36 return __libc_open(file, oflag | O_LARGEFILE, mode);
38 libc_hidden_def(__libc_open64)
40 /* libc_hidden_proto(open64) */
41 weak_alias(__libc_open64,open64)
42 libc_hidden_weak(open64)
43 #endif /* __UCLIBC_HAS_LFS__ */