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 /* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
18 a third argument is the file protection. */
19 int open64 (const char *file, int oflag, ...)
26 va_start (arg, oflag);
27 mode = va_arg (arg, mode_t);
31 return open(file, oflag | O_LARGEFILE, mode);
33 #ifndef __LINUXTHREADS_OLD__
34 libc_hidden_def(open64)
36 libc_hidden_weak(open64)
37 strong_alias(open64,__libc_open64)
40 #endif /* __UCLIBC_HAS_LFS__ */