| 3693 | } |
| 3694 | |
| 3695 | static int ungetc(int c, FILE *stream) |
| 3696 | { |
| 3697 | stdio_lock(stream, EOF); |
| 3698 | c = ungetc_unlocked(c, stream); |
| 3699 | stdio_unlock(stream); |
| 3700 | return c; |
| 3701 | } |
| 3702 | |
| 3703 | static size_t fread_unlocked(void *ptr, size_t size, size_t nmemb, |
| 3704 | FILE *stream) |