#include "libioP.h"#include "stdio.h"int_IO_feof (fp) _IO_FILE* fp;{ int result; CHECK_FILE (fp, EOF); _IO_flockfile (fp); result = _IO_feof_unlocked (fp); _IO_funlockfile (fp); return result;}#ifdef weak_aliasweak_alias (_IO_feof, feof)#ifndef _IO_MTSAFE_IO#undef feof_unlockedweak_alias (_IO_feof, feof_unlocked)#endif#endif
result = _IO_getc_unlocked (fp); (getc.с)
#define _IO_getc_unlocked(_fp) \ (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) \ ? __uflow (_fp) : *(unsigned char *) (_fp)->_IO_read_ptr++)
int__uflow (fp) _IO_FILE *fp;{#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T if (_IO_vtable_offset (fp) == 0 && _IO_fwide (fp, -1) != -1) [b]return EOF;[/b]#endif if (fp->_mode == 0) _IO_fwide (fp, -11); if (_IO_in_put_mode (fp)) if (INTUSE(_IO_switch_to_get_mode) (fp) == EOF) [b] return EOF;[/b] if (fp->_IO_read_ptr < fp->_IO_read_end) return *(unsigned char *) fp->_IO_read_ptr++; if (_IO_in_backup (fp)) { _IO_switch_to_main_get_area (fp); if (fp->_IO_read_ptr < fp->_IO_read_end) return *(unsigned char *) fp->_IO_read_ptr++; } if (_IO_have_markers (fp)) { if (save_for_backup (fp, fp->_IO_read_end)) [b]return EOF;[/b] } else if (_IO_have_backup (fp)) INTUSE(_IO_free_backup_area) (fp); return _IO_UFLOW (fp);}libc_hidden_def (__uflow)