1#include "stdio_impl.h" 2#include "pthread_impl.h" 3 4#ifdef __GNUC__ 5__attribute__((__noinline__)) 6#endif 7static int locking_getc(FILE *f) 8{ 9 FLOCK(f); 10 int c = getc_unlocked(f); 11 FUNLOCK(f); 12 return c; 13} 14 15static inline int do_getc(FILE *f) 16{ 17 return locking_getc(f); 18}