major stdio overhaul, using readv/writev, plus other changes
[musl] / src / stdio / fgetc.c
index 3a7f1e3..da63868 100644 (file)
@@ -4,7 +4,9 @@ int fgetc(FILE *f)
 {
        int c;
        FLOCK(f);
 {
        int c;
        FLOCK(f);
-       c = f->rpos < f->rstop ? *f->rpos++ : __uflow(f);
+       c = getc_unlocked(f);
        FUNLOCK(f);
        return c;
 }
        FUNLOCK(f);
        return c;
 }
+
+weak_alias(fgetc, getc);