4 * Copyright (C) 2009 Analog Devices Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 #define openat64 __xx_openat
10 #include <sys/syscall.h>
14 #ifdef __UCLIBC_HAS_LFS__
17 /* The openat() prototype is varargs based, but we don't care about that
18 * here, so need to provide our own dedicated signature.
20 extern int openat64(int fd, const char *file, int oflag, mode_t mode);
21 libc_hidden_proto(openat64)
23 int openat64(int fd, const char *file, int oflag, mode_t mode)
25 return openat(fd, file, oflag | O_LARGEFILE, mode);
27 libc_hidden_def(openat64)
29 /* should add emulation with open() and /proc/self/fd/ ... */