blob: a2d6617e8699923e75259c5ab0ef9d9ccc7808b9 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
2 *
3 * GNU Library General Public License (LGPL) version 2 or later.
4 *
5 * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
6 */
7
8#include "_stdio.h"
9
10#ifndef __DO_LARGEFILE
11# define FILEDES_ARG (-1)
12# undef fopen
13#else
14# undef fopen64
15#endif
16
17FILE *fopen(const char * __restrict filename, const char * __restrict mode)
18{
19 return _stdio_fopen(((intptr_t) filename), mode, NULL, FILEDES_ARG);
20}
21libc_hidden_def(fopen)