yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | /* 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 | |
| 17 | FILE *fopen(const char * __restrict filename, const char * __restrict mode) |
| 18 | { |
| 19 | return _stdio_fopen(((intptr_t) filename), mode, NULL, FILEDES_ARG); |
| 20 | } |
| 21 | libc_hidden_def(fopen) |