mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
write-only streams. For read/write streams, check whether we
performed a read operation already.
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
int
|
||||
__freading (FILE *fp)
|
||||
{
|
||||
return (((fp->_flags & _IO_NO_WRITES)
|
||||
|| (fp->_flags & _IO_CURRENTLY_PUTTING) == 0)
|
||||
&& (fp->_flags & _IO_NO_READS) == 0);
|
||||
return ((fp->_flags & _IO_NO_WRITES)
|
||||
|| ((fp->_flags & (_IO_CURRENTLY_PUTTING | _IO_NO_READS)) == 0
|
||||
&& fp->_IO_read_base != NULL));
|
||||
}
|
||||
|
Reference in New Issue
Block a user