projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dns query core: detect udp truncation at recv time
[musl]
/
src
/
stdio
/
__towrite.c
diff --git
a/src/stdio/__towrite.c
b/src/stdio/__towrite.c
index
4bf96f4
..
4c9c66a
100644
(file)
--- a/
src/stdio/__towrite.c
+++ b/
src/stdio/__towrite.c
@@
-3,7
+3,7
@@
int __towrite(FILE *f)
{
f->mode |= f->mode-1;
int __towrite(FILE *f)
{
f->mode |= f->mode-1;
- if (f->flags &
(F_NOWR)
) {
+ if (f->flags &
F_NOWR
) {
f->flags |= F_ERR;
return EOF;
}
f->flags |= F_ERR;
return EOF;
}
@@
-17,8
+17,7
@@
int __towrite(FILE *f)
return 0;
}
return 0;
}
-/* Link flush-on-exit code iff any stdio write functions are linked. */
-void __fflush_on_exit()
+hidden void __towrite_needs_stdio_exit()
{
{
-
fflush(0
);
+
__stdio_exit_needed(
);
}
}