X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=380ea396a133ca81ba230b2e45186aed5da2775f;hb=5afc74fbaa2371f30df0dc9fb7bc3afe6bd96137;hp=4bf96f4dfb505a9bffa2be928bab02ad62840ef1;hpb=f753049a50132a23849ef89a8af5ff86ad595c25;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index 4bf96f4d..380ea396 100644 --- a/src/stdio/__towrite.c +++ b/src/stdio/__towrite.c @@ -17,8 +17,11 @@ int __towrite(FILE *f) return 0; } -/* Link flush-on-exit code iff any stdio write functions are linked. */ -void __fflush_on_exit() +const int __towrite_used = 1; + +void __stdio_exit(void); + +void __flush_on_exit() { - fflush(0); + __stdio_exit(); }