projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
work around a nasty bug in linux readv syscall
[musl]
/
src
/
stdio
/
fgetc.c
diff --git
a/src/stdio/fgetc.c
b/src/stdio/fgetc.c
index
3a7f1e3
..
da63868
100644
(file)
--- a/
src/stdio/fgetc.c
+++ b/
src/stdio/fgetc.c
@@
-4,7
+4,9
@@
int fgetc(FILE *f)
{
int c;
FLOCK(f);
- c =
f->rpos < f->rstop ? *f->rpos++ : __uflow
(f);
+ c =
getc_unlocked
(f);
FUNLOCK(f);
return c;
}
+
+weak_alias(fgetc, getc);