47
45
case. We return an error only when there is a new error. */
48
46
int old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
49
47
fp->_IO_file_flags &= ~_IO_ERR_SEEN;
50
count = INTUSE(_IO_getline) (fp, buf, MIN ((size_t) n - 1, size), '\n', 1);
48
count = _IO_getline (fp, buf, MIN ((size_t) n - 1, size), '\n', 1);
51
49
/* If we read in some bytes and errno is EAGAIN, that error will
52
50
be reported for next read. */
53
51
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)