OLD | NEW |
---|---|
1 #include "stdio_impl.h" | 1 #include "stdio_impl.h" |
2 | 2 |
3 int putc(int c, FILE *f) | 3 int putc(int c, FILE* f) { |
4 { | 4 if (f->lock < 0 || !__lockfile(f)) |
5 » if (f->lock < 0 || !__lockfile(f)) | 5 return putc_unlocked(c, f); |
6 » » return putc_unlocked(c, f); | 6 c = putc_unlocked(c, f); |
7 » c = putc_unlocked(c, f); | 7 __unlockfile(f); |
8 » __unlockfile(f); | 8 return c; |
9 » return c; | |
10 } | 9 } |
11 | 10 |
12 weak_alias(putc, _IO_putc); | 11 weak_alias(putc, _IO_putc); |
OLD | NEW |