X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffreopen.c;h=615d4b47bdbe8ef32bc84a4c58b708dc78aa8299;hb=e0e8ae754cc7653fcff489a0e229adbbb49fde6c;hp=6c1b575f527963566a7b457f29c18dea45b2505a;hpb=835f9f950e2f6059532bd9ab9857a856ed21a4fd;p=musl diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c index 6c1b575f..615d4b47 100644 --- a/src/stdio/freopen.c +++ b/src/stdio/freopen.c @@ -1,5 +1,6 @@ #include "stdio_impl.h" #include +#include /* The basic idea of this implementation is to open a new FILE, * hack the necessary parts of the new FILE into the old one, then @@ -9,8 +10,6 @@ * lock, via flockfile or otherwise, when freopen is called, and in that * case, freopen cannot act until the lock is released. */ -int __dup3(int, int, int); - FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict f) { int fl = __fmodeflags(mode); @@ -51,4 +50,4 @@ fail: return NULL; } -LFS64(freopen); +weak_alias(freopen, freopen64);