projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
stdio
/
putc.c
diff --git
a/src/stdio/putc.c
b/src/stdio/putc.c
index 3c9dc11eba64f63d10dbcef4a38b0f5d550b55b7..fa8934969b62de4c4ca99172d13f95f13fc3e0a8 100644
(file)
--- a/
src/stdio/putc.c
+++ b/
src/stdio/putc.c
@@
-2,7
+2,11
@@
int putc(int c, FILE *f)
{
- return fputc(c, f);
+ if (f->lock < 0 || !__lockfile(f))
+ return putc_unlocked(c, f);
+ c = putc_unlocked(c, f);
+ __unlockfile(f);
+ return c;
}
weak_alias(putc, _IO_putc);