1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

* libio/fileops.c (_IO_new_file_underflow): Set error indicator

when reading from write-only stream.
	* libio/oldfileops.c (_IO_old_file_underflow): Likewise.
	* libio/wfileops.c (_IO_wfile_underflow): Likewise.

1999-07-21  Andreas Schwab  <schwab@suse.de>
This commit is contained in:
Andreas Schwab
1999-07-21 13:24:21 +00:00
parent 566089a08a
commit 580345725c
4 changed files with 10 additions and 0 deletions

View File

@ -120,6 +120,7 @@ _IO_wfile_underflow (fp)
if (fp->_flags & _IO_NO_READS)
{
fp->_flags |= _IO_ERR_SEEN;
__set_errno (EBADF);
return WEOF;
}