mirror of git://sourceware.org/git/glibc.git
* 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:
parent
566089a08a
commit
580345725c
|
|
@ -1,3 +1,10 @@
|
||||||
|
1999-07-21 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* 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>
|
1999-07-21 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* nss/test-netdb.c (output_hostent): Don't crash if h_aliases is
|
* nss/test-netdb.c (output_hostent): Don't crash if h_aliases is
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,7 @@ _IO_new_file_underflow (fp)
|
||||||
|
|
||||||
if (fp->_flags & _IO_NO_READS)
|
if (fp->_flags & _IO_NO_READS)
|
||||||
{
|
{
|
||||||
|
fp->_flags |= _IO_ERR_SEEN;
|
||||||
__set_errno (EBADF);
|
__set_errno (EBADF);
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -314,6 +314,7 @@ _IO_old_file_underflow (fp)
|
||||||
|
|
||||||
if (fp->_flags & _IO_NO_READS)
|
if (fp->_flags & _IO_NO_READS)
|
||||||
{
|
{
|
||||||
|
fp->_flags |= _IO_ERR_SEEN;
|
||||||
__set_errno (EBADF);
|
__set_errno (EBADF);
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,7 @@ _IO_wfile_underflow (fp)
|
||||||
|
|
||||||
if (fp->_flags & _IO_NO_READS)
|
if (fp->_flags & _IO_NO_READS)
|
||||||
{
|
{
|
||||||
|
fp->_flags |= _IO_ERR_SEEN;
|
||||||
__set_errno (EBADF);
|
__set_errno (EBADF);
|
||||||
return WEOF;
|
return WEOF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue