X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=380ea396a133ca81ba230b2e45186aed5da2775f;hp=4bf96f4dfb505a9bffa2be928bab02ad62840ef1;hb=599f97360389911c293e0ca4c5eb49e007377fba;hpb=f753049a50132a23849ef89a8af5ff86ad595c25 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(); }