getc, getchar, putc, putchar were defined both as functions and as macros. The macro versions are not thread safe, and should not be used in multithreaded applications. Upstream fix: b0f271d1db
b0f271d1db